This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes redirecting to a page in WEB-INF folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "redirecting to a page in WEB-INF folder" Watch "redirecting to a page in WEB-INF folder" New topic
Author

redirecting to a page in WEB-INF folder

A. Aka
Ranch Hand

Joined: Sep 08, 2012
Posts: 44
Hi,

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 jsf ?

Regards,
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

You cannot redirect to anything in WEB-INF. WEB-INF is defined by the J2EE 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: redirecting to a page in WEB-INF folder
 
Similar Threads
How to get dynamic content in index.jsp page
Servlet Contrlloer Path Issue
Why isn't configuration being activated when an error page is rendered?
Accessing jsp's directly
Public folder in JavaEE website