You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Charbel Abdul-Massih <ca...@soundbite.com> on 2007/05/24 20:00:43 UTC
Mapped Properties - Struts 2 - Best practice
What's the best way to use Mapped/Indexed Properties in Struts 2.x???
Re: Mapped Properties - Struts 2 - Best practice
Posted by Don Brown <do...@gmail.com>.
I would create an object containing the row data, if you haven't
already, then expose a list of that object on the action. Struts 2
can use any POJO, so if your application already stores the
information in an Object, use that.
Don
On 5/25/07, Charbel Abdul-Massih <ca...@soundbite.com> wrote:
> I have a page with a table of n rows (# of rows is dynamic)...
> Each row has 3 columns, with 3 text input fields...
>
> I'm not sure how to represent them in the Action and through the tags...
>
> I know I should use some sort of hashmap with each entry representing
> one row...But from the tags perspective, how do I represent it, assuming
> I have an iterator tag that is writing out the rows...
>
> Thx,
> Charbel
>
>
>
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@yahoo.com]
> Sent: Thursday, May 24, 2007 2:11 PM
> To: Struts Users Mailing List
> Subject: Re: Mapped Properties - Struts 2 - Best practice
>
> --- Charbel Abdul-Massih wrote:
> > What's the best way to use Mapped/Indexed Properties
> > in Struts 2.x???
>
> In what way? Are you asking from a tag syntax
> standpoint, or...?
>
> d.
>
>
>
>
> ________________________________________________________________________
> ____________Got a little couch potato?
> Check out fun summer activities for kids.
> http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+ki
> ds&cs=bz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Mapped Properties - Struts 2 - Best practice
Posted by Charbel Abdul-Massih <ca...@soundbite.com>.
I have a page with a table of n rows (# of rows is dynamic)...
Each row has 3 columns, with 3 text input fields...
I'm not sure how to represent them in the Action and through the tags...
I know I should use some sort of hashmap with each entry representing
one row...But from the tags perspective, how do I represent it, assuming
I have an iterator tag that is writing out the rows...
Thx,
Charbel
-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com]
Sent: Thursday, May 24, 2007 2:11 PM
To: Struts Users Mailing List
Subject: Re: Mapped Properties - Struts 2 - Best practice
--- Charbel Abdul-Massih wrote:
> What's the best way to use Mapped/Indexed Properties
> in Struts 2.x???
In what way? Are you asking from a tag syntax
standpoint, or...?
d.
________________________________________________________________________
____________Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+ki
ds&cs=bz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Mapped Properties - Struts 2 - Best practice
Posted by Dave Newton <ne...@yahoo.com>.
--- Charbel Abdul-Massih wrote:
> What's the best way to use Mapped/Indexed Properties
> in Struts 2.x???
In what way? Are you asking from a tag syntax
standpoint, or...?
d.
____________________________________________________________________________________Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org