I am sure there are better solutions than this, but
, one possible way would be to set a request attribute through
request.setAttribute() in your controller servlet, before forwarding the request
to the view JSP. The JSP could then check the presence of this request attribute
to determine whether the request came in from a Controller or through a Direct
client access (Clients cant request.setAttribute(), since its a HTTP independent
Server side technique)
I'd love to learn some way of doing this
declaratively too ...
regards
Pramod Nair
|
- Restricting direct access of jsp's Rahul
- Re: Restricting direct access of jsp's S Srinivas Nayak
- Re: Restricting direct access of jsp's Dror Matalon
- Re: Restricting direct access of jsp's Pramod Nair
- Re: Restricting direct access of jsp's Katz Guy
- Re: Restricting direct access of jsp's Patrick Melli
- Re: Restricting direct access of jsp's Vikramjit Singh