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
redirecting to a page in WEB-INF folder
Joined: Sep 08, 2012
Sep 15, 2013 13:28:55
I would like to redirect from a page in webapp/index.xhtml to a page in WEB-INF/user.xhtml How can I do that in
Joined: Jun 25, 2001
Sep 16, 2013 05:15:35
You cannot redirect to anything in WEB-INF. WEB-INF is defined by the
standard as an "invisible" directory for URL purposes. Redirects work on URLs, so there's no accessability.
You can reference a resource in WEB-INF, however. I keep my page tile templates under WEB-INF/layouts, since they are invoked via VTL ui:component tags, which use resource paths instead of URL paths.
Customer surveys are for companies who didn't pay proper attention to begin with.
It is sorta covered in the
JavaRanch Style Guide
subject: redirecting to a page in WEB-INF folder
How to get dynamic content in index.jsp page
Why isn't configuration being activated when an error page is rendered?
Public folder in JavaEE website
Accessing jsp's directly
Servlet Contrlloer Path Issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014