Entity beans and select methods.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   priyanka_bhide
Posted On:   Friday, January 23, 2004 10:19 PM

i have a entity bean which contains a select method



public abstract Collection ejbSelectTopicName()throws FinderException;



i need to know how do i call this method from a jsp page as i need to populate a combo box with the values ..


do i use the home inteface object to invoke this method??



from what i have read this method need not be declared in the home interface
help!!!

Re: Entity beans and select methods.

Posted By:   raj_kumar  
Posted On:   Thursday, January 29, 2004 11:46 PM

priyanka ...why dont u use ejbfinder meathods ..that will
solve ur problem ...coz you cant access ejbSelect meathod
from outside the bean....raj

Re: Entity beans and select methods.

Posted By:   Bhagyashree_Jayaram  
Posted On:   Monday, January 26, 2004 08:37 PM

You can't invoke a ejbSelect method directly from your JSP.This is because the ejbSelect methods are those methods which needs to be used within your bean class.

Hence what you can do is define a ejbHome method and from there you access your ejbSlect.From your JSP call the ejbHome method using the home interface object.

Hope this helps....
Bhagya
About | Sitemap | Contact