The better syntax in your html:form would be
<html:form action="/lesson1/logon" focus="user">
where there is something like this in your struts-config.xml
<action
path="/lesson1/logon"
type="${whatever}"
name="${whatever}">
</action>
If this is in place, then there must be something wrong with your
installation of Tomcat or your web.xml.
A setup like this in your application's web.xml
<!-- Standard Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<.../>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
tells the container to foward the *.do requests to the Struts
ActionServlet. If it doesn't, then your container is broken.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/
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!
>
> Andy
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>