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 Tomcat and the fly likes jsp pages in tomcat 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 » Products » Tomcat
Bookmark "jsp pages in tomcat" Watch "jsp pages in tomcat" New topic
Author

jsp pages in tomcat

jignesh soni
Ranch Hand

Joined: Dec 10, 2007
Posts: 150
where do we put jsp pages in tomcat ? Do we put it in classes directory or does it go in the web directory ? In classes directory We put only compiled classes directory, so if we pu the jsp pages in web directory, will it be comiled in classes directory or how will it work ?
I read documentation but could not understand.
Please explain.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8843
    
    7

The layout of the WAR file is covered in the Application Developer's Guide. According to it, "The HTML and JSP pages, along with other files that must be visible to the client browser (such as JavaScript, stylesheet files, and images) for your application" go in the document root directory. It is common to use subdirectories to separate out functionality for larger applications.
I have Tomcat 5.5.26 installed, and when it compiles JSP's, it puts them in $CATALINA_HOME\work\Catalina\localhost\physician\org\apache\jsp


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: jsp pages in tomcat
 
Similar Threads
Running jsp pages in IIS web directory
servlets
JSP Helper classes in Tomcat
Tomcat webapp
where do I put my classes?