You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nagendra Kumar O V S <na...@ikigo.com> on 2003/06/11 07:01:50 UTC

welcome file in web.xml

hi,
 can i use this in web.xml

  <welcome-file-list>
    <welcome-file>jsp/login.do?action=initMethod&amp
targetAction=directLogin</welcome-file>
  </welcome-file-list>
TIA
--nagi
Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 500033
Contact(O): 23544671
Cell: 98482-41789

RE: welcome file in web.xml

Posted by Navjot Singh <na...@net4india.net>.
I have not tried but it should work. let us know if tastes success ;-)

-----Original Message-----
From: Nagendra Kumar O V S [mailto:nagendra@ikigo.com]
Sent: Wednesday, June 11, 2003 10:32 AM
To: struts-user@jakarta.apache.org
Subject: welcome file in web.xml


hi,
 can i use this in web.xml

  <welcome-file-list>

<welcome-file>jsp/login.do?action=initMethod&amp;targetAction=directLogin</w
elcome-file>
  </welcome-file-list>
TIA
--nagi
Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 500033
Contact(O): 23544671
Cell: 98482-41789


____________________________________________________
  IncrediMail - Email has finally evolved - Click Here


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: welcome file in web.xml

Posted by hitesh <hi...@credensys.esselgroup.com>.
No ... this is not a proper way to do it.
(because welcome-file list will be used for
all the directories under the root directory
of your context to locate startup file.)

rather you can use index.jsp as your welcome-file
and in that jsp file you can redirect your request to the URL
given by you.

for example:

WEB.XML

  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>

index.jsp

<%
response.sendRedirect("jsp/login.do?action=initMethod&amp;targetAction=direc
tLogin");
%>

regards,
Hitesh Dave
  -----Original Message-----
  From: Nagendra Kumar O V S [mailto:nagendra@ikigo.com]
  Sent: Wednesday, June 11, 2003 10:32 AM
  To: struts-user@jakarta.apache.org
  Subject: welcome file in web.xml


        hi,
         can i use this in web.xml

          <welcome-file-list>

<welcome-file>jsp/login.do?action=initMethod&amp;targetAction=directLogin</w
elcome-file>
          </welcome-file-list>
        TIA
        --nagi
        Nagendra Kumar O V S
        Member Technical Staff
        Ikigo India Private Ltd.
        470-B, Road No. 36,
        Jubilee Hills,
        Hyderabad 500033
        Contact(O): 23544671
        Cell: 98482-41789


  ____________________________________________________
    IncrediMail - Email has finally evolved - Click Here