Description
With this JSP snippet using Struts 2 taglib:
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>
When the action is called with a parameter containing a space (which is escaped in the URL) :
localhost:8080/url?myParameter=with+space
The output is as follows :
myParameter=[with space] /url.action?myParameter=with%2Bspace /url.action?myParameter=with+space
The includeParams attribute of the “url” tag seems to transform the "space" character into the "plus" character (both in their url-encoded forms).