It's not a secret anymore!*
The moose likes JSF and the fly likes How can I tell JSF that my jsp files are in a different folder than webroot? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How can I tell JSF that my jsp files are in a different folder than webroot?" Watch "How can I tell JSF that my jsp files are in a different folder than webroot?" New topic
Author

How can I tell JSF that my jsp files are in a different folder than webroot?

Jochen Szostek
Ranch Hand

Joined: Mar 23, 2008
Posts: 42

Hi all,

I'm new to JSF and everything works ok if I put my jsp files in my webroot (and call them via the .faces extension).

But if I want to put my jsp files in a WEB-INF/jsp folder it can't find my jsp files. (which of course is kinda logical) I still want them to be available via the same URL.

So how can I define a different jsp folder in JSF?

Thanks!
Zack Marrapese
Greenhorn

Joined: Jul 02, 2008
Posts: 27
You can still access any folder that's in your web content folder by making the URL reflect the file structure.
Jochen Szostek
Ranch Hand

Joined: Mar 23, 2008
Posts: 42

Originally posted by Zack Marrapese:
You can still access any folder that's in your web content folder by making the URL reflect the file structure.


Yes that's true, but I don't think you're allowed in the /WEB-INF/ folder that way (so it seems), because I tried that already.

Thanks for the reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I tell JSF that my jsp files are in a different folder than webroot?
 
Similar Threads
Problem with referencing session information from 2 contexts, one a subfolder of another
Why this happen?
How to put jsp files in a folder in a web project?
How i can place all my servlet files in a different folder
creating website basic question