I have created a Web Application using struts 1.0, written almost 8 jsp. The problem is after starting application, when I change URL and provide /somejsp.jsp, instead of my start jsp it will lead to somejsp.jsp file, which is not required. I do not want to keep my jsp inside WEB-INF. Is there any way to modify application so that whenever user changes URL, it will lead to login page only, instead of /somejsp.jsp
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Joined: Apr 27, 2012
Yes, we can use interceptors or filters. Could you send me code please? Do I need to put code in web.xml and create a separate class?