You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/02/01 17:01:29 UTC
DO NOT REPLY [Bug 16565] -
Incorrect path returned by getActionMappingName due to filename extension stripping
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16565>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16565
Incorrect path returned by getActionMappingName due to filename extension stripping
dgraham1980@hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|Normal |Enhancement
------- Additional Comments From dgraham1980@hotmail.com 2003-02-01 16:01 -------
The "path" you pass to the <html:form> action attribute is not a url, it's a lookup key into the
Action table. Struts generates a proper url for you based on the type of mapping you select (prefix
or file extension). It strips the file extension so that you can put /myAction.do or just
/myAction in the action attribute.
It does seem arbitrary to strip a piece of the key though.
I'm not sure why you want your pages to look static but you could try mapping *.html to the
Struts servlet. Also, using the .do path extension does not reveal anything about what
technology you're using to generate the page. It could be a static html file.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org