s:div, s:a loadingText=image bug 
---------------------------------

                 Key: WW-2008
                 URL: https://issues.apache.org/struts/browse/WW-2008
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.8
         Environment: Ubuntu 7.04
Sun Java 1.6
Tomcat 5.5
Firefox 2.0.0.4
            Reporter: Martin Swiech


Application context path is "/ISIS"
I have this in my main page seznam.jsp:
<s:url id='urlFoo' namespace='/ekonomika/osoby' action='seznamInner' 
includeParams='none'/>
<s:div id='seznamInnerTarget'
        executeScripts='true'
        theme='ajax' 
        href='%{urlFoo}' 
        >
</s:div>

And this is in result from requested action 
/ISIS/ekonomika/osoby/seznamInner.action (seznamInner.jsp):
...
<s:url id='urlBar' namespace='/ekonomika/osoby' action='bar' 
includeParams='none'/>
<s:a href='%{urlBar}' 
        executeScripts='true' 
        targets='barTarget' 
        theme='ajax'
        loadingText='<img src="/images/loading.gif" />'  >reload</s:a>
...

But when I look on final HTML in Firefox (using Firebug plugin), I can see this 
anchor:
... <a ... loadingtext='<img src=/ISIS/ekonomika/osoby/"/images/loading.gif"/>' 
href=... >....
Look, there is servletPath /ISIS/ekonomika/osoby/  moreover. :-(


But when I write this in <s:a> in result seznamInner.jsp :
loadingText="<img src='/images/loading.gif' />"
result in firefox is OK.
<a ... loadingtext="<img src='/images/loading.gif'/>" href=... >


This happens when I use <s:div> for load dynamic content into main page 
seznam.jsp .
When I use <s:a targets="seznamInnerTarget"> for load dynamic content into main 
page seznam.jsp is everything OK.

I think this is very strange and I think this is bug. :-)




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to