You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Pierre-Yves Soblet (JIRA)" <ji...@apache.org> on 2016/04/28 20:33:12 UTC
[jira] [Created] (WW-4628) Space character and includeParams
Pierre-Yves Soblet created WW-4628:
--------------------------------------
Summary: Space character and includeParams
Key: WW-4628
URL: https://issues.apache.org/jira/browse/WW-4628
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.3.28
Reporter: Pierre-Yves Soblet
With this JSP snippet using Struts 2 taglib:
{code}
myParameter=[<s:property value="%{#parameters['myParameter']}"/>]
<br/>
<s:url action="url" includeParams="get"/>
<br/>
<s:url action="url">
<s:param name="myParameter" value="%{#parameters['myParameter']}"/>
</s:url>
{code}
When the action is called with a parameter containing a space (which is escaped in the URL) :
{code}
localhost:8080/url?myParameter=with+space
{code}
The output is as follows :
{code}
myParameter=[with space]
/url.action?myParameter=with%2Bspace
/url.action?myParameter=with+space
{code}
The *includeParams* attribute of the “url” tag seems to transform the "space" character into the "plus" character (both in their url-encoded forms).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)