This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request to JSP page" Watch "Request to JSP page" New topic
Author

Request to JSP page

praveen raaj
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61449
    
  67

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

WEB-INF, not web-inf.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: Request to JSP page