struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glenn, Scott" <Scott.Gl...@umusic.com>
Subject RE: Problems when not using html:form
Date Mon, 02 Feb 2004 16:51:10 GMT
In the past I've had to prepend "<%=request.getContextPath()%>" to the action string,
so that the app server knows the context of the request.  

Ie. 	action="<%=request.getContextPath()%>/Login.do"



> -----Original Message-----
> From: Slattery, Tim - BLS [mailto:Slattery.Tim@bls.gov]
> Sent: 02 February 2004 16:27
> To: 'Struts Users Mailing List'
> Subject: RE: Problems when not using html:form
> 
> > Wouldn't "/Login.do" make the server look for a "Login.do"
> > resource at the root of the server?
> 
> Web.xml is usually set up to intercept *any* request ending in .do and
> send
> it to the Struts ActionServlet. ActionServlet will then look for "/Login"
> (in this case) in an "action" definition in struts-config.xml. In my
> struts-config.xml, and I think it's the standard way to do it, all the
> path
> attributes of the action definitions start with "/". So using "/Login.do"
> would work as expected.
> 
> 
> --
> Tim Slattery
> Slattery@bls.gov
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message