Hi! Just changed my config to enable regex in action names. In struts.xml:

<constant name="struts.patternMatcher" value="regex" />

Works great! But as a side effect, s:forms no longer outputs the correct
path to my actions.

The code below:

<s:form id="uploadImage" action="uploadImagesSave!execute" enctype=
"multipart/form-data" method="post">

used to output:

<form id="uploadImage"
action="/mycontext/news/uploadImagesSave!execute.action" method="post"
enctype="multipart/form-data">
but now I only get:

<form id="uploadImage" action="uploadImagesSave!execute.action"
method="post" enctype="multipart/form-data">

The context and namespace is stripped out. I verified that just changing
back the patternMatcher fixes the issue. I'm using struts 2.3.16.3. Anyone
has any ideas on how to fix it?

Regards
Peter


-- 
PETER BJÖRKMAN - CTO / SYSTEMS ARCHITECT
josh / together is better / www.josh.se
gävlegatan 12b / 113 30 stockholm / sweden
phone +46 709 687 884 / skype peter_josh

Reply via email to