You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Whitmire, Tracy Carroll" <tc...@sandia.gov> on 2007/10/01 19:16:48 UTC
Struts2 Cookbook Question
I'd like to use some of the information found in the cookbook
http://struts.apache.org/2.x/docs/how-do-i-populate-a-form-bean-and-get-
the-value-using-the-taglib.html
But I don't see what/where is BeanUtil.setProperties
Thanks in advance
RE: Struts2 Cookbook Question
Posted by cilquirm <aa...@gmail.com>.
There's nothing preventing you from adding back commons-beanutils or OSCore (
http://www.opensymphony.com/oscore/ ) to get back to that level of
functionality.
I'm not 100% sure why this mechanism is necessary. If you name your getter
on your TestBean appropriately, S2 should take care of it.
Whitmire, Tracy Carroll wrote:
>
> Your memory serves you well. WebWork did have the appropriate class and
> method. But I don't see it any longer. So how are people doing it now?
>
> Migrating an existing project from Struts1 and it seems like it would be
> a logical step in the process. Maybe not.
>
>
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@yahoo.com]
> Sent: Monday, October 01, 2007 2:41 PM
> To: Struts Users Mailing List
> Subject: RE: Struts2 Cookbook Question
>
> BeanUtil, however, was part of WebWork, IIRC.
>
> --- Rod Bollinger <te...@portablegenius.com> wrote:
>
>> BeanUtils is part of Apache Commons:
>> http://commons.apache.org/beanutils/
>>
>> HTH,
>> -Rod
>>
>> -----Original Message-----
>> From: Whitmire, Tracy Carroll
>> [mailto:tcwhitm@sandia.gov]
>> Sent: Monday, October 01, 2007 13:17
>> To: user@struts.apache.org
>> Subject: Struts2 Cookbook Question
>>
>> I'd like to use some of the information found in the cookbook
>>
>>
> http://struts.apache.org/2.x/docs/how-do-i-populate-a-form-bean-and-get-
>> the-value-using-the-taglib.html
>>
>> But I don't see what/where is BeanUtil.setProperties
>>
>> Thanks in advance
>>
>>
>>
>>
> ---------------------------------------------------------------------
>> 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
>
>
>
--
View this message in context: http://www.nabble.com/Struts2-Cookbook-Question-tf4549654.html#a13000112
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Struts2 Cookbook Question
Posted by "Whitmire, Tracy Carroll" <tc...@sandia.gov>.
Your memory serves you well. WebWork did have the appropriate class and
method. But I don't see it any longer. So how are people doing it now?
Migrating an existing project from Struts1 and it seems like it would be
a logical step in the process. Maybe not.
-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com]
Sent: Monday, October 01, 2007 2:41 PM
To: Struts Users Mailing List
Subject: RE: Struts2 Cookbook Question
BeanUtil, however, was part of WebWork, IIRC.
--- Rod Bollinger <te...@portablegenius.com> wrote:
> BeanUtils is part of Apache Commons:
> http://commons.apache.org/beanutils/
>
> HTH,
> -Rod
>
> -----Original Message-----
> From: Whitmire, Tracy Carroll
> [mailto:tcwhitm@sandia.gov]
> Sent: Monday, October 01, 2007 13:17
> To: user@struts.apache.org
> Subject: Struts2 Cookbook Question
>
> I'd like to use some of the information found in the cookbook
>
>
http://struts.apache.org/2.x/docs/how-do-i-populate-a-form-bean-and-get-
> the-value-using-the-taglib.html
>
> But I don't see what/where is BeanUtil.setProperties
>
> Thanks in advance
>
>
>
>
---------------------------------------------------------------------
> 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: Struts2 Cookbook Question
Posted by Dave Newton <ne...@yahoo.com>.
BeanUtil, however, was part of WebWork, IIRC.
--- Rod Bollinger <te...@portablegenius.com> wrote:
> BeanUtils is part of Apache Commons:
> http://commons.apache.org/beanutils/
>
> HTH,
> -Rod
>
> -----Original Message-----
> From: Whitmire, Tracy Carroll
> [mailto:tcwhitm@sandia.gov]
> Sent: Monday, October 01, 2007 13:17
> To: user@struts.apache.org
> Subject: Struts2 Cookbook Question
>
> I'd like to use some of the information found in the
> cookbook
>
>
http://struts.apache.org/2.x/docs/how-do-i-populate-a-form-bean-and-get-
> the-value-using-the-taglib.html
>
> But I don't see what/where is BeanUtil.setProperties
>
> Thanks in advance
>
>
>
>
---------------------------------------------------------------------
> 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: Struts2 Cookbook Question
Posted by Rod Bollinger <te...@portablegenius.com>.
BeanUtils is part of Apache Commons: http://commons.apache.org/beanutils/
HTH,
-Rod
-----Original Message-----
From: Whitmire, Tracy Carroll [mailto:tcwhitm@sandia.gov]
Sent: Monday, October 01, 2007 13:17
To: user@struts.apache.org
Subject: Struts2 Cookbook Question
I'd like to use some of the information found in the cookbook
http://struts.apache.org/2.x/docs/how-do-i-populate-a-form-bean-and-get-
the-value-using-the-taglib.html
But I don't see what/where is BeanUtil.setProperties
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts2 Cookbook Question
Posted by "matt.payne" <ma...@gmail.com>.
I tend to just make my bean a getter/setter on the action and let the
framework take care of it.
However, if you are looking for the equivalent to setProperties/copy etc
look at xwork's
com.opensymphony.xwork2.util.OgnlUtil
Matt
Whitmire, Tracy Carroll wrote:
>
> I'd like to use some of the information found in the cookbook
>
> http://struts.apache.org/2.x/docs/how-do-i-populate-a-form-bean-and-get-
> the-value-using-the-taglib.html
>
> But I don't see what/where is BeanUtil.setProperties
>
> Thanks in advance
>
>
--
View this message in context: http://www.nabble.com/Struts2-Cookbook-Question-tf4549654.html#a12992186
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org