File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Customer Requirements for Developers
this week in the
Jsp page in WEB-INF
Joined: May 05, 2005
May 05, 2005 03:00:00
I have creared a simple hello.jsp page and kept it under WEB-INF folder. but when I try to access it by using following url it gives me page not found error. why?
Joined: Mar 09, 2005
May 05, 2005 03:14:00
You are making little mistake in typing a url.it should look like the following
remember to keep the .jsp file in application folder, that is the folder which contains your web-inf file.
you need to include any information of
in a web.xml file.
if any doubt revert back to me.
Joined: May 05, 2005
May 05, 2005 03:52:00
Thanks Good Guy,
But I have tried that also. My page works fine if I keep it in some other folder lets say page/hellp.jsp (URL:
but if I keep the jsp in web-inf folder (page folder and web-inf folder are at same level in directory structure) and try url
it gives me page not found error.
Joined: Aug 15, 2004
May 05, 2005 04:06:00
Learner, first of all change your display name because you will be asked for it.
For you information, JSPs inside the WEB-INF directory cant be accessed directly.
[ May 05, 2005: Message edited by: Adeel Ansari ]
Joined: Dec 11, 2004
May 05, 2005 04:36:00
Browsers can not access the WEB-INF directory directly.
Your JSPs and the WEB-INF directory should be in the root directory of your application.
How to ask a question...
Simple Servlet Examples
Author and ninkuma
Joined: Jan 10, 2002
May 05, 2005 07:58:00
We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the
JavaRanch Naming Policy
adjust your display name
to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Jsp page in WEB-INF
Doubt about WEB-INF
I can't believe, I'm not able to get this servlet working!
Directory Structure for JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015