Link to home
Start Free TrialLog in
Avatar of coffee_bean
coffee_bean

asked on

How to access a jsp page inside a folder under WEB-INF?

How to access a jsp page(itemDetails.jsp) inside a folder(product) under the WEB-INF?

Located on my computer
C:\Myapp\WEB-INF\product\itemDetails.jsp

http://localhost:8080/myapp/....

myapp is the Web Context name
product is a folder that store the itemDetails.jsp file

I keep getting a HTTP Status 404 error
ASKER CERTIFIED SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try

http://localhost:8080/myapp/product/itemDetails.jsp 

It will work if ur Web Context Path points to C:\Myapp\WEB-INF and ur Web Context Name is myapp


SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of coffee_bean
coffee_bean

ASKER

Hi All thanks so much, I put the jsp file outside WEB-INF and I can access to that page now.
Hmm...how come I can't split the point? I have increase the pt to 30 and wanted to split to each of u. I will check with the mod and come back to award the pt again.
You need to have at least 20 points per expert to make a split.
Thanks everyone.  But just wondering if I put the jsp file into a folder outside the WEB-INF, wouldn't this make the page less secure as it can be easily accessed?
But a JSP is supposed to be seen. You need to look at the topics of Authentication and Authorization if you only want certain people to look at the page.