Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

How to prevent direct access to JSP

Kushan Jayathilake

2010-07-06

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi Guys,

Can anyone suggest me how to prevent an user entering a direct URL for the
JSP instead of action,

ie : *search.jsp* instead of *search.action*

I want to control this, so the users must enter an URL ends with
*.action*and i also wants to control access some pages by typing its
action name
also,
like it shouldn't be allowed to go anyother page directly, instead users
must go through the buttons and links appears on the home page

ie: if anyone want to go to *summary.action* he must first go to the *
search.action* first.

Hope im clear enough.. :) can anyone suggest me how to do this?

--
Regards
Kushan Jayathilake
©2008 gg3721.com - Jax Systems, LLC, U.S.A.