Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Allow index.jsp but disallow access to any other jsp's

 
Dom Lassy
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this in my web.xml:


Is there a way I can allow access to index.jsp, but block access to any other jsp? Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A frequent means to accomplish this that doesn't require any configuration is to place index.jsp at the web app root, and to place all others in the folder structure under WEB-INF.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic