Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: Setting all bean's properties in servlet

Shapira, Yoav

2003-10-17



Howdy,
I think commons-beanutils has something that does this automatically for
you. I know struts does it, and I believe struts internally uses
commons-beanutils to do it.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Jason Viers [mailto:bean@(protected)]
>Sent: Thursday, October 16, 2003 11:15 PM
>To: Tomcat Users List
>Subject: Setting all bean's properties in servlet
>
>Is there a way in a servlet to set all the properties you can in a bean
>with the parameters passed to the servlet, similar to the way you do in
>a .jsp with <jsp:setProperty name="foo" property="*"/> ? It seems like
>it should be easy enough, but Goggling only found someone asking the
>same question here in 2000 with no responses.
>
>I know that I could have my form submit to a .jsp that uses
><jsp:setProperty> and then forward to the servlet, but it seems as
>though there should be a more elegant way to do it.
>
>Thanks
>Jason
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.