struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paul.edmond...@fifeventures.co.uk
Subject [S2] <s:a> using <s:param ...
Date Thu, 05 Apr 2007 10:32:13 GMT
Hello,

I've been trying to use <s:a ..> but come across a problem when using  
it with <s:param> to set parameters on the action url.

 From the documentation there is an example:

  <s:a id="link1" theme="ajax" href="/DoIt.action" errorText="An  
error ocurred" loadingText="Loading...">
      <img border="none" src="<%=request.getContextPath()%>/images/ 
delete.gif"/>
      <s:param name="id" value="1"/>
  </s:a>

Which should results in

  <a dojoType="BindAnchor" executeScripts="true" id="link1" href="/ 
DoIt.action?id=1" errorText="An error ocurred"></a>

However the actual result when trying this example from the browser is:

<a dojoType="struts:BindAnchor"

   	id="link1"  	href="/DoIt.action"    loadingText="Loading..."     
errorText="An error ocurred"    showError="true">

      <img border="none" src="/webcomposer/images/delete.gif"/>

  </a>

The params do not get added to the href URL.  Does this look like a  
bug in the org.apache.struts2.components.Anchor class?

Thanks for any pointers,


Paul.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message