BeanUtils question with DynaForms?

2003-03-19 Thread Mick . Knutson



Can I use BeanUtils to convert 
a DynaForm to a concrete DTO that I have?
The signiture matches the names 
in the DynaForm aside from the "Sentance Case".
So, I have an element in the 
struts-config.xml called "firstName", and a UserDto that has a 
setFirstName(String firstName)

Thanks in 
advance...




Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBSAG, Financial- Zürich
Office: +41 
(0)1/234.42.75
Internal: 48194
Mobile: 
079.726.14.26





Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


Re: BeanUtils question with DynaForms?

2003-03-19 Thread Gemes Tibor
[EMAIL PROTECTED] írta:

Can I use BeanUtils to convert a DynaForm to a concrete DTO that I have?
The signiture matches the names in the DynaForm aside from the 
Sentance Case.
So, I have an element in the struts-config.xml called firstName, and 
a UserDto that has a setFirstName(String firstName)
yes.  If conversion errors happen register a new converter w/ ConvertUtils.

Hth,

Tib



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: BeanUtils question with DynaForms?

2003-03-19 Thread Mick . Knutson
Well, I guess the Reflection methods I created were a futile tutorial then. They work 
pretty good though.

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 2:19 PM
To: Struts Users Mailing List
Subject: Re: BeanUtils question with DynaForms?


[EMAIL PROTECTED] írta:

 Can I use BeanUtils to convert a DynaForm to a concrete DTO that I have?
 The signiture matches the names in the DynaForm aside from the 
 Sentance Case.
 So, I have an element in the struts-config.xml called firstName, and 
 a UserDto that has a setFirstName(String firstName)

yes.  If conversion errors happen register a new converter w/ ConvertUtils.

Hth,

Tib



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BeanUtils question with DynaForms?

2003-03-19 Thread Kris Schneider
Well, you can copy and convert the *properties* of your DynaActionForm. Try
BeanUtils.copyProperties(dao, form).

Quoting [EMAIL PROTECTED]:

 Can I use BeanUtils to convert a DynaForm to a concrete DTO that I have?
 The signiture matches the names in the DynaForm aside from the Sentance
 Case.
 So, I have an element in the struts-config.xml called firstName, and a
 UserDto that has a setFirstName(String firstName)
  
 Thanks in advance...
  
   _  
 
 Thank You
  
 Mick Knutson
  
 Sr. Designer - Project Trust
 aUBS AG, Financial - Zürich
 Office: +41 (0)1/234.42.75
 Internal: 48194
 Mobile: 079.726.14.26
   _  
 
  
 
 
 Visit our website at http://www.ubswarburg.com
 
 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: BeanUtils question with DynaForms?

2003-03-19 Thread Mick . Knutson
I was actually wondering if it would work both ways:

BeanUtils.copyProperties(dto, dynaForm)
BeanUtils.copyProperties(dynaForm, dto)

Should work both ways like this yes?
 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 3:06 PM
To: Struts Users Mailing List
Subject: Re: BeanUtils question with DynaForms?


Well, you can copy and convert the *properties* of your DynaActionForm. Try
BeanUtils.copyProperties(dao, form).

Quoting [EMAIL PROTECTED]:

 Can I use BeanUtils to convert a DynaForm to a concrete DTO that I have?
 The signiture matches the names in the DynaForm aside from the Sentance
 Case.
 So, I have an element in the struts-config.xml called firstName, and a
 UserDto that has a setFirstName(String firstName)
  
 Thanks in advance...
  
   _  
 
 Thank You
  
 Mick Knutson
  
 Sr. Designer - Project Trust
 aUBS AG, Financial - Zürich
 Office: +41 (0)1/234.42.75
 Internal: 48194
 Mobile: 079.726.14.26
   _  
 
  
 
 
 Visit our website at http://www.ubswarburg.com
 
 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: BeanUtils question with DynaForms?

2003-03-19 Thread Kris Schneider
Yup.

Quoting [EMAIL PROTECTED]:

 I was actually wondering if it would work both ways:
 
 BeanUtils.copyProperties(dto, dynaForm)
 BeanUtils.copyProperties(dynaForm, dto)
 
 Should work both ways like this yes?
  
   _  
 
 Thank You
  
 Mick Knutson
  
 Sr. Designer - Project Trust
 aUBS AG, Financial - Zürich
 Office: +41 (0)1/234.42.75
 Internal: 48194
 Mobile: 079.726.14.26
   _  
 
 
 
 -Original Message-
 From: Kris Schneider [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 3:06 PM
 To: Struts Users Mailing List
 Subject: Re: BeanUtils question with DynaForms?
 
 
 Well, you can copy and convert the *properties* of your DynaActionForm. Try
 BeanUtils.copyProperties(dao, form).
 
 Quoting [EMAIL PROTECTED]:
 
  Can I use BeanUtils to convert a DynaForm to a concrete DTO that I have?
  The signiture matches the names in the DynaForm aside from the Sentance
  Case.
  So, I have an element in the struts-config.xml called firstName, and a
  UserDto that has a setFirstName(String firstName)
   
  Thanks in advance...
   
_  
  
  Thank You
   
  Mick Knutson
   
  Sr. Designer - Project Trust
  aUBS AG, Financial - Zürich
  Office: +41 (0)1/234.42.75
  Internal: 48194
  Mobile: 079.726.14.26
_  
  
   
  
  
  Visit our website at http://www.ubswarburg.com
  
  This message contains confidential information and is intended only
  for the individual named.  If you are not the named addressee you
  should not disseminate, distribute or copy this e-mail.  Please
  notify the sender immediately by e-mail if you have received this
  e-mail by mistake and delete this e-mail from your system.
  
  E-mail transmission cannot be guaranteed to be secure or error-free
  as information could be intercepted, corrupted, lost, destroyed,
  arrive late or incomplete, or contain viruses.  The sender therefore
  does not accept liability for any errors or omissions in the contents
  of this message which arise as a result of e-mail transmission.  If
  verification is required please request a hard-copy version.  This
  message is provided for informational purposes and should not be
  construed as a solicitation or offer to buy or sell any securities or
  related financial instruments.
  
 
 
 -- 
 Kris Schneider mailto:[EMAIL PROTECTED]
 D.O.Tech   http://www.dotech.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 Visit our website at http://www.ubswarburg.com
 
 This message contains confidential information and is intended only 
 for the individual named.  If you are not the named addressee you 
 should not disseminate, distribute or copy this e-mail.  Please 
 notify the sender immediately by e-mail if you have received this 
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free 
 as information could be intercepted, corrupted, lost, destroyed, 
 arrive late or incomplete, or contain viruses.  The sender therefore 
 does not accept liability for any errors or omissions in the contents 
 of this message which arise as a result of e-mail transmission.  If 
 verification is required please request a hard-copy version.  This 
 message is provided for informational purposes and should not be 
 construed as a solicitation or offer to buy or sell any securities or 
 related financial instruments.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]