How can i pass info from dyna form bean to Entity Bean(CMP)

Pl any one answer

Showing Answers 1 - 3 of 3 Answers

Ravi shankar

  • Oct 20th, 2005
 

For this,

First you need to import Home Interface,Remote Interfaces into your bean,(.jar file should be placed in WEB-INF/lib folder) and then,

you get access to the HomeOjbect using the InitialContext Object,and by passing dyna form values to findByPrimaryKey() method you can forward info to ejb.

  

  Was this answer useful?  Yes

venki

  • Oct 24th, 2005
 

we can access dynaform bean information in action class after that calls ejb entity beans in execute method .use that entity beans and pass the information of form beans in create or findByprimarykey methods after use if u require.

  Was this answer useful?  Yes

ramakrishna

  • Nov 1st, 2005
 

              To pass the values from dyna form to entity bean,

   we should follow some design patterns.

from action to business delegate(java bean)----->sesstion bean1----->>sesstion bean2--->entitybean

Get the values from jsp and pass thess values as method arguments from action to entity bean by above design patterns

 thanks & regards

Ramakrishna

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions