Meaningless Drivel is fun!*
The moose likes JSP and the fly likes document root for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "document root for JSP" Watch "document root for JSP" New topic
Author

document root for JSP

Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
I have a very simple question about the document root for JSPs.
I am using jdeveloper as my dev environment.
I have placed the jsps in a directory under the document root public_html.
Now i access the application as <application name>/CDShop/<jspname>.jsp.

I get the filenotfoundexception saying no such jsp under public_html.
So in case i am not placing my jsps directly under public_html ,but in a separate folder(beneath public_html),how do i make them accessible?

I thought the servlet engine searches from public_html downwards for loading the JSPs
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

The most common place for JSP's is directly under your context. So in your case it might be CDShop/<jspname>.jsp.


GenRocket - Experts at Building Test Data
 
GeeCON Prague 2014
 
subject: document root for JSP