On Wed, 2001-10-31 at 11:08, Andrew Kirkland wrote:
> A .do file is the file extention that i have used for mapping purposes.
> 
> I have this in my jsp : <html:form action="lesson1/logon.do" focus="user">
> 
> and then web.xml redirects it and it should then be processed by my java
> file etc.
> 
> However I am simply redirected in my browser to logon.do which doesnt exist!

Struts routes the login.do to the action with the corresponding "path",
in this case "logon". Then the Action is executed. Based on the return
value "mapping.findForward("xxx"), the forward with that "xxx" name of
this action will be called. All this is configured in struts-config.xml.

<action    path="/logon"
               type="com.mypackage.struts.LoginAction"
               name="loginForm"
               scope="request">
      <forward name="xxx"              path="/dothis.jsp"/>
      <forward name="xy"              path="/dothat.jsp"/>
</action>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to