aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "document root for JSP" Watch "document root for JSP" New topic

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: 15286

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

GenRocket - A Test Data Generation Platform
I agree. Here's the link:
subject: document root for JSP
Similar Threads
JSP Delpoyment
Help please - Web Application Stress Tool
Precompile JSP in Weblogic 5.1
First Jsp - HTTP 404/Not Found
Page Directive errorPage and isErrorPage