aspose file tools*
The moose likes JSP and the fly likes usebean tag gives problems while instantiating bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "usebean tag gives problems while instantiating bean" Watch "usebean tag gives problems while instantiating bean" New topic
Author

usebean tag gives problems while instantiating bean

AMIT GO
Greenhorn

Joined: Dec 16, 2004
Posts: 1
hi every one
can some pl help me
i am using tomacat and using <jsp:useBean id="hello" class="MyBean" />
in my index.jsp page located at webapps/beaninjsp directory
MyBean class is located at
webapps/beaninjsp/WEB-INF/classes/MyBean

when i give foll url
http://localhost:8080/beaninjsp/index.jsp

error ocurs
browser says
usebean action class property has invalid class MyBean

do i hv to configur web.xml
and how
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Put your bean in a package and use the full name with package in the useBean tag. The compiled bean class must reside in a directory under classes that reflects the package. This has nothing to do with web.xml.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: usebean tag gives problems while instantiating bean