[
http://www.stripesframework.org/jira/browse/STS-805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12206#comment-12206
]
Matthew Kilpatrick commented on STS-805:
----------------------------------------
I guess the prependContext="true" part was also covered in STS-760. It seems to
be a matter of opinion at this point. I would assume that if I set
prependContext to true it would force the appended context no matter what, but
this is not the case and looks like it was done this way on purpose as stated
by the log warning: "Use of prependContext="true" is only valid with a URL that
starts with "/""
I feel that prependContext, if set to true, should always show the context or
else there is no point to ever say prependContext="true". On the flip side,
prependContext="false" will also NOT append the context (as expected)
regardless of beginning slashes. So false always does something, whereas true
never does anything.
Let the debates begin.
> 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