struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeromy Evans <>
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:

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

View raw message