[ http://mc4j.org/jira/browse/STS-158?page=comments#action_10507 ] Kai Grabfelder commented on STS-158: ------------------------------------
some logic changes in the link tag is what I like to see as well. I want to have an actionBean infront of every JSP so the automatic additon of the source jsp file to link_tags is not really that useful for me - it rather exposes details about my system that should be hidden from the users and therefore I would at least like to see an option to remove it or (much better) to change the url to point to the actually displayed browser url of the current page... > LinkTag doesn't add contextpath if some part of the href contains the context > path > ---------------------------------------------------------------------------------- > > Key: STS-158 > URL: http://mc4j.org/jira/browse/STS-158 > Project: Stripes > Issue Type: Bug > Components: Tag Library > Affects Versions: Release 1.3 > Environment: 1.3 Beta 1 > Reporter: Jeppe Cramon > Assigned To: Tim Fennell > Fix For: Release 1.5 > > > Hi > If the href in anyway contains the contextpath then the LinkTag wont > preappend the context path. > Example: context path = "/user" > href= > "/someurl/someaction.action?returnPage=/user/someurl2/someaction2.action" > Since the test on doEndTag just checks with a contains() this will always > fail to preappend /user to the href: > doEndTag code: > // Append the context path, but only if the user didn't already > if (originalHref.startsWith("/") && !"/".equals(contextPath) > && !originalHref.contains(contextPath + "/")) { > href = contextPath + href; > } > /Jeppe -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://mc4j.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
