Forums Register Login

access JSP in a subfolder in webcontent

+Pie Number of slices to send: Send
so i have servlet that send a message to a jsp using request dispatcher. But a 404 error comes. The jsp file is located inside a folder that folder is inside the webcontent. When i place that jsp file directly in the webcontent folder and cange the path in request dispatcher the 404 error goes away.But i want to place it inside of a folder can you tell me what the path will be.
+Pie Number of slices to send: Send
Paths in Java web applications should be server-relative, that is, start with the context path. See the JspFaq for an article that describes how to do this.
moose poop looks like football shaped elk poop. About the size of this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 787 times.
Similar Threads
link url html to jsp
How specify path to .JSP file for request.getRequestDispatcher()?
Spring 3.2.0.M2 : Using Static Resources
Can't locate .js (or .css) files from a .jsp page.
Cannot access servlet after deploying website on cpanel
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:15:14.