my dog learned polymorphism*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "jsp pages in tomcat" Watch "jsp pages in tomcat" New topic

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

Joined: Oct 29, 2001
Posts: 8705

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]
I agree. Here's the link:
subject: jsp pages in tomcat
Similar Threads
Tomcat webapp
where do I put my classes?
JSP Helper classes in Tomcat
Running jsp pages in IIS web directory