Spring's binding mechanism should automatically match any request parameter to the credentials property name so you should be okay without the custom binder assuming you follow the conventions.
On Sun, Aug 29, 2010 at 2:00 PM, petefox <[email protected]> wrote: > Thank you for response! > > My custom binder (MyCredentialsBinder) casts in method "bind" the > credentials to MyCredentials and sets the country, which is needed in > casLoginView.jsp: > > public class MyCredentialsBinder implements CredentialsBinder { > public void bind(HttpServletRequest request, Credentials > credentials) { > if (credentials instanceof MyCredentials) { > MyCredentials creds = > (MyCredentials)credentials; > > creds.setUsername(request.getParameter("username")); > > creds.setPassword(request.getParameter("password")); > > creds.setCountry(request.getParameter("country")); > } > } > > public boolean supports(Class clazz) { > return true; > } > } > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
