• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Frontman 2.0 viewsPath

 
John Schretz
Ranch Hand
Posts: 188
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64180
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
John Schretz
Ranch Hand
Posts: 188
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic