Jan 14th, 2009, 09:25 AM
using a ":" as part of form element name
we are working on a spring mvc portlet which uses freemarker templates.
Currently we have a problem using a ":" as part of the name attribute of a form element, for example: <input name="abc:def" .../>. We are required to keep the colon there.
We have configured Spring to map this form element to a bean property, but can't figure out how to do this. The mapping from abc:def to bean properties is direct, so our bean setter would have to be called "setAbc:def()", which is ofcourse not valid Java.
Is there any way to influence the name somewhere along the line to match the form element name to the bean property.
Tags for this Thread