Friday, February 2, 2007

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

a) 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 Initial Context Object, and by passing dynamo form values to findByPrimaryKey () method you can forward info to ejb.

b) 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.

SOURCE : www.referjava.com

No comments: