Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facelets pages under WEB-INF directory

Every project example I've seen so far, in a book or a tutorial, have got the XHTML (Facelets) pages on the same level as WEB-INF directory. I've read also that in order to have the pages not direct accessible on the server, you need to hide them under the WEB-INF directory, that means that one need some kind of view resolver for that. My question is, how can I do that?

like image 897
claudia b Avatar asked Mar 16 '12 10:03

claudia b


1 Answers

I think you misunderstood the purpose of the XHTML files which are placed in /WEB-INF. These are the include files, master templates and tag files, exactly those pages which you don't want the end user to be able to open standalone. The normal pages and template clients are not placed in /WEB-INF.

See also:

  • Which XHTML files do I need to put in /WEB-INF and which not?
like image 116
BalusC Avatar answered Sep 21 '22 14:09

BalusC