Isnt the conversion a simple matter of HashTable tbl = javax.servlet.http.HttpUtils.parsePostData(int len, ServletInputStream in) Map map = new HashMap(tbl);
Only thin i am unsure about is the length parameter. Regards Wendy > -----Original Message----- > From: Kris Schneider [mailto:kris@;dotech.com] > Sent: Wednesday, November 13, 2002 1:40 PM > To: Struts Users Mailing List > Subject: Re: jsp:setProperty > > > commons-beanutils.jar is part of the Struts 1.1 distribution. > It's also > an entirely independent Jakarta Commons component. I still think you > should really check out the > org.apache.struts.util.RequestUtils.populate > method. Otherwise, you'll have to do the work of converting > the request > params into a Map that can be used by BeanUtils.populate. > > Wendy Cameron wrote: > > Sorry but just let me get this clear in my head. > > > > There are BeanUtils class in commons.beanutils package. > > This is not part of the struts distribution? Separate package? > > So is it part of the latest tomcat distribution? (I think I > recall seeing > > a commons jar file in the tomcat area) > > > > Regards Wendy > > > >>-----Original Message----- > >>From: Craig R. McClanahan [mailto:craigmcc@;apache.org] > >>Sent: Wednesday, November 13, 2002 12:30 PM > >>To: Struts Users Mailing List > >>Subject: Re: jsp:setProperty > >> > >> > >> > >> > >>On Wed, 13 Nov 2002, Wendy Cameron wrote: > >> > >> > >>>Date: Wed, 13 Nov 2002 12:09:01 +1000 > >>>From: Wendy Cameron <[EMAIL PROTECTED]> > >>>Reply-To: Struts Users Mailing List > <[EMAIL PROTECTED]> > >>>To: "Struts Users Mailing List (E-mail)" > >> > >><[EMAIL PROTECTED]> > >> > >>>Subject: jsp:setProperty > >>> > >>>Hello All, > >>> > >>>This is probably not the best forum, but I was wondering if > >> > >>anyone new how to, do the equivalent of > >> > >>>jsp:setProperty "*" in a servlet > >>> > >>>Or is this not possible? > >>> > >> > >>Actually it is, and it's the basic reason that the BeanUtils > >>classes were > >>created in the first place. See the BeanUtils.copyProperties() and > >>BeanUtils.populate() methods -- Struts actually uses the > >>latter when it > >>populates your form bean properties for you. Javadocs are at: > >> > >> http://jakarta.apache.org/commons/beanutils/api/ > >> > >> > >>>Regards Wendy > >>> > >> > >>Craig > >> > >> > >>-- > >>To unsubscribe, e-mail: > > > > <mailto:struts-user-unsubscribe@;jakarta.apache.org> > > For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> > > > -- > To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> -- Kris Schneider <mailto:kris@;dotech.com> D.O.Tech <http://www.dotech.com/> -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>