Struts and mapped property  
Author Message
ShadowMan





PostPosted: 2004-12-4 19:16:00 Top

java-programmer, Struts and mapped property Hi
I'm using Struts with DynaActionForm wich as 3 to 8 Map as property, so I'm
using mapped property.
When I put them into HTML form it result in INPUT fields having names like
'map1(property1)' this leads to problems in writing Javascript.
Can I use another format in mapped property names?!

thanx

--
ShadowMan


 
Oscar kind





PostPosted: 2004-12-5 1:43:00 Top

java-programmer >> Struts and mapped property ShadowMan <email***@***.com> wrote:
> using mapped property.
> When I put them into HTML form it result in INPUT fields having names like
> 'map1(property1)' this leads to problems in writing Javascript.
> Can I use another format in mapped property names?!

No. At least not without rewriting that part of Struts.

You can however, use javascript constructs like this in a form input
element:
this.form.elements['map1(text1)'].value = 'foo'


--
Oscar Kind http://home.hccnet.nl/okind/
Software Developer for contact information, see website

PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2