The moose likes Servlets and the fly likes Request to JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request to JSP page" Watch "Request to JSP page" New topic

Request to JSP page

praveen raaj

Joined: Nov 30, 2009
Posts: 11
Hi Friends,

How to stop the request to Jsp?
avi sinha
Ranch Hand

Joined: Mar 15, 2009
Posts: 453

putting it in the WEB-INF folder is the simplest way .

avi sinha

SCJP 5.0 SCWCD 5.0
Aditya Keyal
Ranch Hand

Joined: Dec 01, 2008
Posts: 71
If you want to stop the access to a jsp resource directly then Yes putting in web-inf is the easiest solution.

Of you want to stop access to a jsp based on some input/authentication criteria then using a filter is a preferred solution.

If your doubt is still not answered just elaborate the problem definition.

- Aditya Webservices Blog
swapnl patil
Ranch Hand

Joined: Aug 13, 2007
Posts: 80
Yes, Aditya is right. Use filter where you can check particular information & based on the result you forward request to your JSP or forward somewhere else according to your need.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63867

Aditya Keyal wrote:Yes putting in web-inf is the easiest solution.

WEB-INF, not web-inf.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Request to JSP page
It's not a secret anymore!