URL security in jsp how?

Reply

Join Date: Aug 2007
Posts: 63
Reputation: alsoumhi is an unknown quantity at this point 
Solved Threads: 0
alsoumhi alsoumhi is offline Offline
Junior Poster in Training

URL security in jsp how?

 
0
  #1
Oct 29th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,634
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 472
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
0
  #2
29 Days Ago
Putting pages under WEB-INF is a good one but my suggestion to you to use urlrewrite or authentication mechanisms.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC