Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

redirecting to a page in WEB-INF folder  RSS feed

 
A. Aka
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!