Here's a trick to get an action to execute as home page in your webapp without having to do the jsp redirect.
Put a file called webapp.launch in the root directory of your webapp Then configure these settings in your web.xml <servlet> <servlet-name>redirector</servlet-name> <servlet-class>yourpackage.Redirector</servlet-class> </servlet> <servlet-mapping> <servlet-name>redirector</servlet-name> <url-pattern>*.launch</url-pattern> </servlet-mapping> package yourpackage; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Redirector to start application on browse to root url * */ public class Redirector extends HttpServlet { /** * Stub method */ public void destroy() { } /** * Forward the user to start page of webapp * [EMAIL PROTECTED] request [EMAIL PROTECTED] response [EMAIL PROTECTED] ServletException [EMAIL PROTECTED] IOException */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendRedirect("home.do"); } /** * Description of the Method */ public void init() throws ServletException { } } -----Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: > I haven't tried it, but I've been told that, in tomcat, if you create a file > with that exact name it will work properly. Evidently you cannot specify a > servlet path as a welcome file. > > -----Original Message----- > From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 23, 2003 7:00 AM > To: [EMAIL PROTECTED] > Subject: .do as welcome-file > > > Does anyone has figured out how to do this? > > <welcome-file-list> > <welcome-file>/start/start.do</welcome-file> > </welcome-file-list> > > I am not able to make it work. > > TIA, > > Adolfo. > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]