Aug 5th, 2011, 08:34 AM
Form with random field name
I am using Spring @MVC with Spring 3 annotated controllers and I've come across a problem I can't find the solution to.
I have a form that is backed by a form bean, and now I need to add a new field with a random name as part of a security requirement.
I've spent some time on this, I can generate a random field name and have the field take that name without too much hassle, but for the life of me I can't figure out how to retrieve the value of this field in the controller's POST handling method. So far it appears like I can only retrieve values that can be set onto a bean via setters (or direct field access) of a known, instantiable class.
Tags for this Thread