This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Where to place? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Where to place?" Watch "Where to place?" New topic
Author

Where to place?

subho saha
Ranch Hand

Joined: Jun 15, 2005
Posts: 57
In our web space we have 3 folders : db,Log and webroot.Where will I keep my jsp files and jar/Class files?Please direct?

[ January 14, 2006: Message edited by: subho saha ]
[ January 14, 2006: Message edited by: subho saha ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60764
    
  65

Whatever JSP engine you are using will have documentation on this. But in a nutshell...

Place the JSPs anywhere under the app root that you want. To hide the JSPs from direct access (which I almost always do), place them in a folder hierarchy unde WEB-INF. For direct access, place them anywhere outside of WEB-INF.

Class files go in the folder hierarchy under WEB-INF/classes. Be sure that all classes are in a package other than the default.

Jar files go in WEB-INF/lib.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where to place?
 
Similar Threads
only default is working!
suggestion required on building an java based editor???
Happy Bengali New Year.
wishing happy holi
was it right to drop sourav ganguly from indian cricket team???