This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 12761
    
    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
 
Consider Paul's rocket mass heater.
 
subject: usebean tag gives problems while instantiating bean
 
Similar Threads
HTTP Status 500 - No Context configured to process this request
JSP and JavaBeans
Servlet Context Virtual Sandbox
how to deploy web in tomcat
access to resources which is not in webapps