Thanks Dave for your quick response.

It's worth an effort as a web page quite possibly won't work properly if its
query string is longer than 255 characters.

JavaScript can achieve it but it's not a good choice because clients may
diable it.

Struts 1 render "name" attribute of text field from the field's "property"
attribute. Since the property attrubite is bound to action form's property,
all of the three names (field "name" attribute, action form's property name,
and request parameter name) must be the same. I think it would be flexible
if the text field's "name" attribute is NOT rendered from the "property"
attribute. E.g. if the "name" attribute is rendered by the field's styleId
attribute or a new attribute, we can choose a name for the request parameter
name and another name for the action form's property.

What do you think?

Thanks.



There's nothing like that built-in. Seems like it'd be trivial to implement
via JavaScript, but I'd question whether or not it's worth the effort.

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Struts-1%3A-how-to-use-different-parameter-names-from-html-field-names-tp21118966p21120221.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to