You can protect your JSP files from beeing accessible to browser by putting them in WEB-INF directory.
You must also upgrade your struts-config so that <forward url="/home.jsp> becomes <forward url="/WEB-INF/home.jsp"> This solution is commonly used, but I'm not sure all servlet container will accept it. Nico > thanx a lot Nico. > I've tried by making an entry in to welcome file list. > but in that case user can always access the file using home.jsp > how can I make sure that user cannot call a page through url > (http://..../home.jsp) which is bypassing the controller. > user has to come access the home page through controller. > > thanx a lot > --------anjali > > -----Original Message----- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 03, 2002 6:02 PM > To: Struts Developers List > Subject: Re: calling home page of the application through controller > > > > To ensure your JSP are accessed via the controler, you can put your JSP in > WEB-INF directory (not shown to users by HTTP server). I'm not sure it works > with every Servlet container. > > You can also use the welcome-file-list to define the URL of your home page, > that can be a "xx.do" URL. > > Nico > > > > 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 > > > > > > -- > 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>