dcsimg
do i really need to keep my bean in a package to call in jsp
5 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   narender_venkat
Posted On:   Tuesday, July 29, 2003 10:10 AM

HI,

do i really need to keep my bean in a package to call in jsp, this is code the i was trying to work with tomcat >


<%jsp:useBean id="demobean" scope="request" class="demobean" typespec/%>

i have kept my demobean in classes directory of web-inf.

Re: do i really need to keep my bean in a package to call in jsp

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, July 30, 2003 06:53 AM

Re: do i really need to keep my bean in a package to call in jsp

Posted By:   Anonymous  
Posted On:   Wednesday, July 30, 2003 06:13 AM

no.. its not required for us to put our class in a package..

so are you able to call the bean from the jsp or do you have problems in calling the bean?

Re: do i really need to keep my bean in a package to call in jsp

Posted By:   Anonymous  
Posted On:   Tuesday, July 29, 2003 04:30 PM

what version of JDK are you using? after 1.4 you need a package if i'm not mistaken? correct me if i'm wrong.

Re: do i really need to keep my bean in a package to call in jsp

Posted By:   vinay_salehithal  
Posted On:   Tuesday, July 29, 2003 01:39 PM

Yes, u need to use a package.

Re: do i really need to keep my bean in a package to call in jsp

Posted By:   Steven_Martin  
Posted On:   Tuesday, July 29, 2003 12:03 PM

You are using the 'default' package with none specified. You can also put this class in a jar into the lib directory instead or a more specific package (com.something.yadda)
About | Sitemap | Contact