struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeromy Evans <jeromy.ev...@blueskyminds.com.au>
Subject Re: Displaytag help in Struts 2
Date Thu, 05 Jul 2007 10:41:41 GMT

> Within the displaytag 'display:table' tag, a 'row' object is set into
> the page context.
> How is this accessible from Struts 2?
#attr is the  OGNL to access the page context.    #attr.row will access 
your display tag id object named row

eg. #1

<s:url action="/MyAction.action" value="%{#attr.row.param1}"></s:url>	


eg. #2

<display:table name="list" id="row">
     <s:set name="myrow" value="#attr.row"/>
      <s:url action="/MyAction.action" value="%{#myrow.param1}"></s:url>

#attr is described here:
http://struts.apache.org/2.x/docs/ognl.html

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


Mime
View raw message