My Question is how to restrict the unauthorised user to see the authorised page through URL. access. in jsp. [ July 12, 2008: Message edited by: manoj Rksh ]
use security constraints.. Open your web.xml file and Just put the folder name between the tags. So the user can't able to access the privileged pages.That's it...
Never try to be a hard-worker. Be a smart-worker.
My Blog
Servlet security and the web.xml file are both big topics - too big to cover in a post here. My advice would be to get an introductory servlet/JSP book, e.g. Head First Servlets/JSP. You could also read up on these concepts in the servlet specification, and study the examples that come with a servlet container like Tomcat.
In the future, please CarefullyChooseOneForum; this one is about JDBC. I'll move it to a more appropriate forum.
in my web.xml file <security-constraint> <web-resource-collection> <web-resource-name></web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection>
</security-constraint> in the above coding where i have to give the folder or file name to restrict to anauthorised person.