• 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

JSP and MVC (role or not a role ?)

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i want to develop an web-application, which is made with the MVC-design.
all my request are managed by the controller-servlets and this dispatch the request to another servlets or a jsp. it works fine.
i have one problem:
if the "bad guy" calls the jsp directly it's works also without my controller-servlet and the security-checks.
- can i give the jsp and the servlet a role, so that only the controller can dispatch to a jsp ?
- servlet and a role works fine, but for a jsp i get different errors.....
- how can i solve this problem ? - is this the wrong solution ?

thanks a lot
heiner

[ October 22, 2002: Message edited by: heiner weilandt ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A very easy, and common way, to prevent JSP pages from being directly accessed via a browser URL is to place them under the WEB-INF folder. Such files are not directly addressable via URL.
hth,
bear
 
Did you just should on me? You should read 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