This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

usebean tag gives problems while instantiating bean

 
AMIT GO
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic