TrainBeaser for iPhone
The moose likes Tomcat and the fly likes where to put beans in tomcat 4.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "where to put beans in tomcat 4.1" Watch "where to put beans in tomcat 4.1" New topic
Author

where to put beans in tomcat 4.1

bab javier
Ranch Hand

Joined: Aug 12, 2003
Posts: 32
i'm a newbie in jsp and am just learning through online tutorials.
my prob is that whenever my jsp uses a bean, it can't detect the class. my tutorial instructs me to put my JSPs in /webapps/ROOT. i tried to put the beans by adding another folder (/WEB-INF/classes) in the said directory. but i still can't get it to run.
need help! tnx
Sainudheen Mydeen
Ranch Hand

Joined: Aug 18, 2003
Posts: 218
Hi
Try to package your beans and put them in appropriate sub folder inside WEB-INF\classes. In usebean tag use the calss with package name.
-Sainudheen
bab javier
Ranch Hand

Joined: Aug 12, 2003
Posts: 32
hi! i've tried it but it still gives me the same exceptions.
Sainudheen Mydeen
Ranch Hand

Joined: Aug 18, 2003
Posts: 218
Hi
Can u tell us what exception? And a portion of code would be better.
-Sainudheen
bab javier
Ranch Hand

Joined: Aug 12, 2003
Posts: 32
hi again! tnx for the tip. its working now. i kinda forgot that i'm working with 2 jsp files that i forgot to place the package name at the other file :roll:
thanks! you're a big help!
 
IntelliJ Java IDE
 
subject: where to put beans in tomcat 4.1
 
Threads others viewed
HTML form
Exception Handling
where do I put my classes?
JSP Newbie needs help getting a clue!
Using Javac Command Line Options in Windows
IntelliJ Java IDE