this comes straight from the doc (Doc) http://struts.apache.org/2.1.2/struts2-core/apidocs/org/apache/struts2/components/Bean.html
<-- in jsp form --> <s:bean name="org.apache.struts2.example.counter.SimpleCounter" var="counter"> <!-- This will get --> <-- jsp form --> <s:property value="#counter" /> <!--This will set --> <s:param name="foo" value="BAR" /> The value of foo is : <s:property value="foo"/>, when inside the bean tag <br /> </s:bean> HTH/ Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Thu, 5 Feb 2009 10:05:35 -0700 > Subject: Re: Access Struts2 Action Properties > From: chadmichaelda...@gmail.com > To: user@struts.apache.org > > Custom tag? Is this a custom JSP tag? > > On Thu, Feb 5, 2009 at 2:21 AM, Dominik Fischer <fische...@idowa.de> wrote: > > Hello folks, > > > > how can i access a property (i.e. data) of a class like.... > > > > public class BabyAction extends ActionSupport implements RequestAware { > > private List data; > > > > public List getData() { > > return this.data; > > } > > > > public void setSearch(List data) { > > this.data = data; > > } > > > > ... > > > > } > > > > ... in a custom tag like ... > > <i:divTable list="data"/> > > ????? > > > > I have tried it with request.getAttribute() or session.getAttribute, but > > nothing worked. > > > > > > Thank you > > Dom > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ Windows Liveā¢: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_022009