• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem using bean with jsp

 
Pradeep Nair C
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using java web server for my jsp project. i created a simple bean class named SpellCheck and copied it into the root directory. i used the <jsp:useBean id="x" scope="request" class="SpellCheck"> tag to include the bean.all files are on the root directory. but an error comes showing translation error and tellng that type declaration needed showing ...SpellCheck class not found . pls get me the remedy as early as possible
 
Nicolas Brasseur
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which web container are you using
When using Tomcat 4.0, you have to construct from the tomcat4/webapps/"you web app name"/WEB-INF/classes/ sub-directory the tree-directory structure corresponding to the package of your class.
Ex :
- MyBean is delcared in the be.loop package (using the package be.loop; statement as the first line of my java source file.
- I have a web application called MapFinder
-> The MyBean.class file must be located in the tomcat_install_dir/webapps/MapFinder/WEB-INF/classes/be/loop/ directory
Does it help ?
Nicolas
The Loop Factory
 
Andres Pineda
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't worry if yo've never used the Tomcat web server, Nicolas has given you a good explanation, you have only to donwload the Tomcat 4.0 at the following address: java.sun.com/products/jsp/tomcat/
good luck!
[ March 06, 2002: Message edited by: Andres Pineda ]
[ March 06, 2002: Message edited by: Andres Pineda ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!