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\i temDetails .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
Located on my computer
C:\Myapp\WEB-INF\product\i
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi All thanks so much, I put the jsp file outside WEB-INF and I can access to that page now.
ASKER
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.
ASKER
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.
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