struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-1537) URL tag: webapp root repeats when path saved to local variable
Date Wed, 06 Dec 2006 02:25:57 GMT
    [ http://issues.apache.org/struts/browse/WW-1537?page=comments#action_39001 ] 
            
Musachy Barroso commented on WW-1537:
-------------------------------------

I'm not sure about the "ajaxHref", because it means the same as "href",
IMO it is going to be confusing.

What if we don't build the url at all, and just use it as it is (
addParameter("href"), findString(href)), and document that the url needs
to be built with the "url" tag to be used on the ajax tags?

> URL tag: webapp root repeats when path saved to local variable
> --------------------------------------------------------------
>
>                 Key: WW-1537
>                 URL: http://issues.apache.org/struts/browse/WW-1537
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Ted Husted
>         Assigned To: Rainer Hermanns
>            Priority: Blocker
>             Fix For: 2.0.2
>
>         Attachments: WW-1537.patch
>
>
> Markup like
> <s:url id="url" action="showActionTagDemo" namespace="/tags/non-ui/actionTag"/><s:a
href="%{url}">Action
> </s:a>
> should render an URI like 
> * http://localhost:8080//struts2-showcase/tags/non-ui/
> but instead renders 
> * http://localhost:8080/struts2-showcase/struts2-showcase/tags/non-ui/
> Meanwhile 
> * <a href="<s:url id="url" action="showActionTagDemo" namespace="/tags/non-ui/actionTag"/>">Action
Tag</a>
> renders correctly, the difference being one uses a local variable. 
> Similarly, 
> * <s:url id="url" value="/tags/non-ui/" /><s:a href="%{url}">Non UI Tags
Examples</s:a>
> also hiccups and renders the web application root twice. 
> By contrast 
> * <s:url id="url" value="date.jsp" /><s:a href="%{url}">Date Tag</s:a>
> which doesn't inlcude a path, renders just fine, 
> * http://localhost:8080/struts2-showcase-2.0.2/tags/non-ui/date.jsp

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message