This determines whether or not the parameters will be URL-encoded.
includeParams: The includeParams attribute may have the value 'none', 'get' or 'all'.
This determines if the current page's parameters will be included in the generated URL. With a value of "get" only the parameters included on the current page's URL will be included. With "all" *all* of the parameters (for instance, from a POST) will be included (IIRC). With "none", none will. [ December 11, 2008: Message edited by: David Newton ]
For example, if I have an action with a visible "itemId" property the following JSP works as expected:
As an aside, namespace="../public" may generate the correct URL, but seems a bit weird. If the action is defined in a package with the namespace "/public" then the appropriate usage would be namespace="/public". [ December 11, 2008: Message edited by: David Newton ]
Joined: Jul 01, 2008
Thanks David,/public will be alright for me, again thanks.
if I give the <s:url> us mentioned above, the url will look like
It's being displayed because you're giving it a parameter.
You could also check the Struts 2 plugins list to see if a plugin already exists; I don't recall any off the top of my head. It would be easy enough to write, though, and contribute back to the project.