You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ke...@sunlife.com on 2002/06/27 00:03:11 UTC

RE: Action as Welcome File



Another approach is to use the "refresh" META tag. This is supported by most browsers.

Specifically:

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

Then, in index.html:

          <html>
          <head>
          <title>Redirect to our home page</title>
     <META  http-equiv="refresh"  content="0;URL="/index.do">Please click here to if you are not automatically redirected to our home page</a>
          </head>
          <body bgcolor="#ffffff">
          <center>Please <a href="/index.do">click here</a> if you are not automatically redirected to our home page
          </center>
          </body>

For most all browsers this should automatically redirect them to the home page.

Good luck,

Kevin






"Rathore, Pavan" <pr...@bb.directv.com> on 06/26/2002 06:09:43 PM

Please respond to "Struts Users Mailing List"
      <st...@jakarta.apache.org>

To:   "'Struts Users Mailing List'" <st...@jakarta.apache.org>
cc:    (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  RE: Action as Welcome File


Instead of that You can make a dummy (xyz.jsp) and then in xyz.asp you can
Redirect to index.do

Pavan

-----Original Message-----
From: Jerry Jalenak [mailto:Jerry.Jalenak@LABONE.com]
Sent: Wednesday, June 26, 2002 3:07 PM
To: 'struts-user@jakarta.apache.org'
Subject: Action as Welcome File


Is it possible to do the following?

in web.xml......

 <servlet>
  <servlet-name>action</servlet-name>
  .
  .
  .
 </servlet>

 <servlet-mapping>
  <servlet-name>action</servlet-name>
  <url-pattern>*.do</url-pattern>
 </servlet-mapping>

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

I am trying to get index.do to run first before anything else happens.
What
I get is a directory listing of the web application folder.  I'm running
this under Tomcat 3.3.1.  Is anyone doing this? Can it even be done?

Jerry

This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error,
please
immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

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








--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>