struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: s:form does not output the correct path to action
Date Wed, 12 Nov 2014 11:22:57 GMT
2014-11-10 15:22 GMT+01:00 Peter Björkman <peter@josh.se>:
> 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">

this missing "namespace" attribute

> 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?

Can you prepare working example that I can use to debug?


Thanks in advance
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message