If you put the form into a scope (i.e. request), you should be able to
grab it with display:table name="attributeNameForForm.myList"

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Bryce Fischer
> Sent: Saturday, January 31, 2004 3:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [displaytag-user] List contained in ActionForm (Struts)
> 
> 
> > I don't understand the question - please explain your problem with 
> > code
> > samples.
> 
> Thanks for the reply Matt. Sorry I wasn't clear, poly sci 
> major, not communications.
> 
> Lets say I have the following ActionForm (code abbreviated):
> 
> public class MyForm extends ActionForm {
>       String someString;
>       List myList;
> 
>       public String getSomeString();
>       public void setSomeString(String str);
> 
>       public List getMyList();
>       public void setMyList(List myList);
> }
> 
> and in my JSP, I am using DisplayTag to render a table of the 
> List in my ActionForm.
> 
> With a Struts html tag, I just need to specify the property:
>       <html:text property="someString"/>
> 
> Since DisplayTag isn't a Struts Tag, I don't think I can 
> specify just the property to display:
>       <display:table name="myList">
>       ..... columns
>       </display:table>                                                
> 
> My question is how would I get the list to display in the displaytag. 
> 
> Hope this is clearer.
> 
> -- 
> Bryce Fischer <[EMAIL PROTECTED]>
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration 
> See the breadth of Eclipse activity. February 3-5 in Anaheim, 
> CA. http://www.eclipsecon.org/osdn 
> _______________________________________________
> displaytag-user mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to