struts-user mailing list archives

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

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/ 
      <s:param name="id" value="1"/>

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"/>


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,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message