Calling a java bean into a jsp
1 posts in topic
Flat View  Flat View

Posted By:   venkatesh_thiagarajan
Posted On:   Monday, May 31, 2004 05:20 AM

I am using Apache Tomcat web server. I have a java bean and a jsp. I had put the java bean inside web-inf/classes which is the default package. I am calling the java bean in the jsp using

in the above code, we have a property called age in the java bean Sample. If the bean is inside a package, for example p1, the class attribute will be “p1.Sample”, the above code works fine but if it is put straight away inside web-inf/classes folder, it shows could not resolve class Sample.

Could you find any solution for this problem?

Re: Calling a java bean into a jsp

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, June 1, 2004 06:07 AM

I don't see any problem? you have to put classes in a package anyway, and it works when you do that, right?
About | Sitemap | Contact