Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.8
-
None
Description
Normally,
<s:form action="%
{'Simple?a=123&b=234'}">
would be rendered as:
<form action="/mysite/Simple.action?a=123&b=234" ... >
But if the ".action" suffix is omitted in the request URL,
(e.g. http://localhost/mysite/Simple )
it will be rendered as:
<form action="/mysite/Simple" ... >
The query string is not appended.
In org.apache.struts2.dispatcher.mapper.DefaultActionMapper#getUriFromActionMapping(),
query string is appended only in case that the extension is provided.