My web.xml file has:

 

<welcome-file-list>

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

</welcome-file-list>

 

index.jsp:

<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<logic:redirect forward="home"/>

 

 

struts-config.xml:

<global-forwards>

      <forward name="home" path="/Home.do"/>

</global-forwards>

      

<action-mappings>

      <action path="/Home" type="edu.msu.kate.struts.action.DoFirst">

            <forward name="success" path="homeDef" />

      </action>

</action-mappings>

 

DoFirst.java:

package edu.msu.kate.struts.action;

 

import org.apache.struts.action.*;

import javax.servlet.http.*;

 

public class DoFirst extends Action {

            public ActionForward perform(

                                    ActionMapping aMapping,

                                    ActionForm aForm,

                                    HttpServletRequest aRequest,

                                    HttpServletResponse aResponse

            ){

                        return aMapping.findForward("success");

            }

}

 

Seth Buntin

Web Resources Coordinator

Kentucky Academy of Technology Education

Murray State University

 

Reply via email to