You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Frank W. Zammetti" <fz...@omnytex.com> on 2004/11/02 22:39:22 UTC

Re: Struts-BSF, Struts-Scripting [was Re: Proposal: Javascript-to-Java object conversions]

I started toying with this today... The first problem I found is that if 
you set the value of a form field to an object (i.e., 
theForm.myField.value = myObject;), you DON'T get it serialized as was 
indicated originally... You simply get the typical [Object] string.  At 
least, this is the case in IE 6.

I wrote a quick function to create a CSV string out of the properties of 
an object, no big deal.  It won't work for array properties at the 
moment, but one step at a time I figure.  Tomorrow I'll see about 
writing the BeanUtils converter to handle that and spit out a HashMap 
with the values.  That will take care of the Javascript->Java portion of 
the equation.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

Frank W. Zammetti wrote:
> On the later idea, I intend to put together a proof-of-concept next week 
> when I get back to the office.  I have some family engagements this 
> weekend that will keep me from getting started, and on Tuesday I take 
> the first exam for my SCEA (not to mention the election!), but I have 
> some spare cycles at work currently so I should pretty much have the 
> rest of the week to play.
> 
> I only mention this because while I obviously can't stop anyone else 
> from beating me to the punch, I do intend to persue this, so if you have 
> any other itches to scratch, go for them, leave this one for me if you 
> would :)
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org