• 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

problem in putting jsp's under WEB-INF folder

 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
somewhere i read to protect jsp's from direct access, we can place them in WEB-INF folder. But what if i want to redirect to a jsp from another jsp in WEB-INF folder.

Thanks in advance
K. Prasad Reddy
Hyderabad
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"PrasadReddy@AIPL",
Please check your private messages.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Redirects involve direct access from a browser.

Unlike forwards (which occur on the server), a redirect is accomplished by sending a 30x response code to the browser along with a 'Location' header.
Once received, the browser makes a brand new request for the resource specified in the location header.

So, in short, you can not redirect to a JSP stored under WEB-INF.
You would need to either use a forward, or redirect to a controller which uses a forward.
reply
    Bookmark Topic Watch Topic
  • New Topic