[
https://issues.apache.org/jira/browse/WW-4417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated WW-4417:
--
Description:
Just changed my config to enable regex in action names. In struts.xml:
{code:xml}
constant name=struts.patternMatcher value=regex /
{code}
Works great! But as a side effect, s:forms no longer outputs the correct path
to my actions.
The code below:
{code:html}
s:form id=uploadImage action=uploadImagesSave!execute
enctype=multipart/form-data method=post
{code}
used to output:
{code:html}
form id=uploadImage action=/mycontext/news/uploadImagesSave!execute.action
method=post enctype=multipart/form-data
{code}
but now I only get:
{code:html}
form id=uploadImage action=uploadImagesSave!execute.action method=post
enctype=multipart/form-data
{code}
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?
was:
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?
s:form fails to output context/namespace when used with regex pattern matcher
-
Key: WW-4417
URL: https://issues.apache.org/jira/browse/WW-4417
Project: Struts 2
Issue Type: Bug
Components: Core Actions
Affects Versions: 2.3.16.3
Reporter: Peter Björkman
Fix For: 2.3.x
Just changed my config to enable regex in action names. In struts.xml:
{code:xml}
constant name=struts.patternMatcher value=regex /
{code}
Works great! But as a side effect, s:forms no longer outputs the correct path
to my actions.
The code below:
{code:html}
s:form id=uploadImage action=uploadImagesSave!execute
enctype=multipart/form-data method=post
{code}
used to output:
{code:html}
form id=uploadImage
action=/mycontext/news/uploadImagesSave!execute.action method=post
enctype=multipart/form-data
{code}
but now I only get:
{code:html}
form id=uploadImage action=uploadImagesSave!execute.action method=post
enctype=multipart/form-data
{code}
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?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)