Struts and mapped property

S

ShadowMan

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
 
O

Oscar kind

ShadowMan said:
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'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top