• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

restrict access to jsp from WSAD/Websphere

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I don't want to put the jsp's under WEB-INF folder.

I included the following in the web.xml. But still I am able to access the jsp's. Am i doing something wrong?
I am using WSAD 5.1.1

< security-constraint >< display-name >Access restticted to jsp< / display-name >
< web-resource-collection >
< web-resource-name >Restrict jsp< /web-resource-name >
< description >Restrict jsp< / description >
< url-pattern >/*.jsp< / url-pattern >
< http-method>GET< /http-method >
< http-method>PUT< /http-method >
< http-method>HEAD< /http-method >
< http-method>TRACE< /http-method >
< http-method>POST< /http-method >
< http-method>DELETE< /http-method >
< http-method>OPTIONS< /http-method >
< /web-resource-collection >
< /security-constraint >
[ July 25, 2006: Message edited by: James Kesari ]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't forget to specify which group is allowed to access jsp resources. In other words try to add auth-constraint within security-constraint element.

regards,
PK
[ July 30, 2006: Message edited by: Pawel Kwiatkowski ]
 
And inside of my fortune cookie was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic