You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Anjali Jain <An...@NIIT.com> on 2002/06/03 14:18:58 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: calling home page of the application through controller

Posted by Nicolas De Loof <ni...@cgey.com>.
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>