> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Really? BeanUtils.copyProperties seems to indicate that it copies
> "bean
> properties" which are usually defined as strings for which the methods
> getFoo and setFoo exist. For a DynaValidatorBean, no such methods
> exist.
http://jakarta.apa
On 10/31/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
Again, the problem was creating the target bean, not copying the
properties. Thanks, though.
How about posting the stack trace / line number that its throwing the
NPE on? Also what Struts version are you using?
Niall
- -chris
---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
>> For a DynaValidatorBean, no such methods exist.
>
> http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.6.1/docs/api/
>
> 'If the origin "bean" is actually a Map, it is assumed to contain
> String-valued simpl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
> To "clone" a DynaValidatorForm perhaps something like this will work:
>
> LazyDynaBean obj = new LazyDynaBean();// create a lazy dyna bean
> BeanUtils.copyProperties(obj, dyForm);// save your form properties
> session.setAttri
session.getAttribute("saved.obj");
BeanUtils.copyProperties(dyForm, obj); // restore your form properties
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 31 October 2006 11:33 AM
To: Struts Users Mailing List
Subject: Re: Rolling back form chang
All,
> Now I just need to figure out how to copy one of these things. It
> looks like "getMap" might be my best option. Any reason why this
> might be a bad idea? 'cause this class is not clonable, and it
> doesn't have a copy constructor, so this looks like the only
> possibility.
To answer my o
Dave,
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
>> Is there a way to get the "name" of the currently active form?
>
> Is that what ActionMapping's getName() does?
Duh! Thanks. I'm a moron.
Now I just need to figure out how to copy one of these things. It looks
like "getMap" might be
Message -
From: "Dave Newton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, October 30, 2006 12:47 PM
Subject: RE: Rolling back form changes
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Is there a way to get the "name" of t
It's been a couple years since I did this, so I apologize for possible
inaccuracies. I remember calling a method (something like beanCopy?)
that allows cloning and setting a form with a single call. When I
searched the API I could not find it, but I noticed
DynaActionForm.getMap() that seems to p
You might have a look at the button.
(*Chris*)
On 10/30/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
All,
I have a multi-page flow and I am using a DynaValidatorForm to store all
my form info.
At the end of the flow, there's a "confirmation" page where the user can
check out all of th
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Is there a way to get the "name" of the currently active form?
Is that what ActionMapping's getName() does?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
11 matches
Mail list logo