[
http://www.stripesframework.org/jira/browse/STS-805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12204#comment-12204
]
Matthew Kilpatrick commented on STS-805:
----------------------------------------
After further investigation it looks like there was a bug fix
(http://www.stripesframework.org/jira/browse/STS-760) in which it checks that
the url starts with a slash before adding the context path. In my case with the
javascript, all the stripes tags are rendered server side, whereas the js is
rendered client side. This means that the url is inserted after the tag is
generated, so stripes never reads in the url to see that it has the starting
slash. This all makes sense and apparently there was a bug in 1.5.2.
The concern now is that adding prependContext="true" still doesn't force the
tag to generate the context path.
> stripes:url does not append the web application context path when the value
> is a variable
> -----------------------------------------------------------------------------------------
>
> Key: STS-805
> URL: http://www.stripesframework.org/jira/browse/STS-805
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.5.6
> Reporter: Matthew Kilpatrick
> Priority: Minor
>
> When using stripes:url the url entered in the value parameter should
> automatically append the web application context path when the url begins
> with a slash and doesn't already contain the context path. It seems to be
> working correctly in the standard case of putting the literal string within
> the value parameter, but fails to append the context path when the url comes
> from a variable. Here are the steps to recreate:
> Create an onclick JS function like the following:
> function urlTest () {
> var url = '/foo/bar/path';
> window.location = '<stripes:url value="' + url + '" />';
> }
> The above url variable should not contain the context path. The above
> function works as expected in 1.5.2 but not in 1.5.6. You can also see that
> the stripes url tag does work as expected if you change window.location =
> '<stripes:url value="' + url + '" />'; to window.location = '<stripes:url
> value="/foo/bar/path" />'; in 1.5.6
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development