• Post Reply Bookmark Topic Watch Topic
  • New Topic

In Which Folder I palce Bean File

 
rushikesh kale
Ranch Hand
Posts: 41
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I have a little doubt!
Can you tell me where to store the javaBean files in jakarta-tomcat-4.1.27 sever since there are two folders having name classes.
Here are the choices of folders:
1]C:\Tomcat\common\classes
2]C:\Tomcat\webapps\examples\WEB-INF
3]C:\Tomcat\server\classes
4]C:\Tomcat\shared\classes
Please tell which is the right folder to store Bean files.
Also tell me why all these calsses folders are there ?
Thanks In Advance!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put them under your app in a classes folder under WEB-INF.

C:\Tomcat\webapps\YOUR_APP\WEB-INF\classes\YOUR_PACKAGE\YOUR_BEAN_CLASSES

If you'd like an example, goto:
http://simple.souther.us
SimpleBean and SimpleMVC have beans.

Tomcat's documentation will tell you all about why all these directories exist. Specifically here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
 
rushikesh kale
Ranch Hand
Posts: 41
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks BEN!
You give me more than i want!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!