[ https://issues.apache.org/jira/browse/WW-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223296#comment-13223296 ]
Lukasz Lenart commented on WW-3769: ----------------------------------- Why do you use PortletUrlRenderer ? Is it a portlet app ? > <s:url> tag can not generate proper namespace when don't assign namespace > value in tag. > --------------------------------------------------------------------------------------- > > Key: WW-3769 > URL: https://issues.apache.org/jira/browse/WW-3769 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Portlet > Affects Versions: 2.3.1.2 > Reporter: Yagumo Pei > Fix For: 2.3.2 > > > I upgrade my application from 2.1.8 to 2.3.1.2, then find that <s:url> can't > geneate proper result when I don't assign namespace value in the <s:url> tag. > e.g, <s:url value="aaaa/">, in the old version, I got > "http://xxx/xxxx&struts.portlet.action=/somenamespace/aaaa", but in the new > version, I got "http://xxx/xxxx&struts.portlet.action=/aaaa", the namespace > is missing. > I check source code between 2.1.8 and 2.3.1.2, and find in > org.apache.struts2.components.PortletUrlRenderer > {code} > public void renderUrl(Writer writer, UrlProvider urlComponent) { > ... > > urlComponent.setNamespace(urlComponent.determineNamespace(urlComponent.getNamespace(), > urlComponent.getStack(),urlComponent.getHttpServletRequest())); // Line 78, > in 2.1.8 > ... > } > {code} > This statement is missing in 2.3.1.2, which cause struts can't find namespace > by action name. I think it's losing feature. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira