944,118 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 787
  • JSP RSS
Oct 29th, 2009
0

URL security in jsp how?

Expand Post »
Hi guys I am trying to prevent user to access directly using URL to my application , so in order to do that I have used security constraint in web.xml file and it works with me . my problem is in my application I am using href and redirect method in my servlets to redirect a user , here the server will not redirect a user to required pages but redirecting a user to error page "access deny" , it is like a user accessed directly from URL

please help me how to solve this problem.

I have seaeched about how to secure your pages from accessing directly using URL which is through putting all the pages under web-inf directory , I hope if you tell me how to do that , what changes i have to do in my web.xml
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
alsoumhi is offline Offline
66 posts
since Aug 2007
Nov 5th, 2009
0
Re: URL security in jsp how?
Putting pages under WEB-INF is a good one but my suggestion to you to use urlrewrite or authentication mechanisms.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Session in jsp problem
Next Thread in JSP Forum Timeline: Combobox Selection From Session Attribute





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC