Use the container managed security . If u define security constraint as none,container will not allow anyone directly accessing through request but you can forward it to. This is available only to those container supporting servlet specification 2.3. A Secuirty constraint like
<security-constraint> <web-resource-collection> <web-resource-name>All JSP Pages</web-resource-name> <url-pattern>/base/*</url-pattern> </web-resource-collection> </security-constraint> will not allow anybody to access pages directly using URL like http://localhost:8080/OffBusinessCard/base/menu.jsp You can access pages using request dispatcher. Second approach off-course to put them in WEB-INF directory which can not be directly accessed. Ashok -----Original Message----- From: Anjali Jain To: Struts Developers List Sent: 06/03/2002 8:18 AM Subject: calling home page of the application through controller Hi all, I have an application following struts. How can I make sure that my home page of the application (home.jsp) is called through a controller servlet. If my ActionServlet's url mapping is *.do, then user should not be able to access the home page by typing http://....../home.jsp in the url If anybody can help. thanx, ---------anjali Power your enterprise with custom solutions in eLearning and Knowledge Management from NIIT - Knowledge Solutions. For details visit our website http://www.ksb.niit.com ___________________NOTICE____________________________ This electronic mail transmission contains confidential information intended only for the person(s) named. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you received this transmission in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of NIIT shall be understood to be neither given nor endorsed by NIIT When addressed to NIIT clients, any information contained in this e-mail is subject to the terms and conditions in the governing client contract. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> Power your enterprise with custom solutions in eLearning and Knowledge Management from NIIT - Knowledge Solutions. For details visit our website http://www.ksb.niit.com ___________________NOTICE____________________________ This electronic mail transmission contains confidential information intended only for the person(s) named. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you received this transmission in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of NIIT shall be understood to be neither given nor endorsed by NIIT. When addressed to NIIT clients, any information contained in this e-mail is subject to the terms and conditions in the governing client contract. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>