my dog learned polymorphism*
The moose likes Other Application Frameworks and the fly likes Frontman 2.0 viewsPath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Frontman 2.0 viewsPath" Watch "Frontman 2.0 viewsPath" New topic
Author

Frontman 2.0 viewsPath

John Schretz
Ranch Hand

Joined: Sep 10, 2008
Posts: 188
Is there any way to add more than one viewsPath?

Id like to categorize my jsp pages in different folders within the jsp folder. i.e. a folder for "site" and a folder for "administration". However debugging the code it looks like you can only declare one viewPath.

Below is what i currently have now that works fine but id like to add another entry for a administration folder.

Maybe i am just looking at this the wrong way?

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61652
    
  67

The intent was that you would set the view path to the root of the JSP hierarchy and use sub-folders for organization. For example, I always set it to WEB-INF/views and use sub-folders to segregate the view JSPs logically.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
John Schretz
Ranch Hand

Joined: Sep 10, 2008
Posts: 188
Ok, that makes sense, then i assume i would keep my css, js, images folders outside of WEB-INF. Im trying to nail down a re-useable file structure, in the past i have use apache in front of tomcat and just left it a a flat file structure, im trying to get away from that.
 
 
subject: Frontman 2.0 viewsPath