[ http://mc4j.org/jira/browse/STS-158?page=all ]
Tim Fennell updated STS-158:
----------------------------
Fix Version/s: Release 1.5
For 1.5 I want to do a bit of an overhaul of the form/link/url tags. I think
the better solution is to have them actually talk to the ActionResolver and
figure out in detail what kind of path they have, if it matches at ActionBean,
and what if anything, needs to be done to the URL prior to rendering.
Since it's a fairly significant change I'm targetting 1.5 for this.
> 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