This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
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: 452

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: 60791

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]
I agree. Here's the link:
subject: Request to JSP page
Similar Threads
Scope of implicit response object
Attributes sent from JSP wont show in Servlet
Getting the Servlet output in a JSP file
Regarding about sending request attributue from jsp to servlet
how can I send the output of a servlet to a jsp page?