I believe your commandName would have to be "credentials" Cheers, Scott
On Mon, Jun 27, 2011 at 11:22 AM, Fco Javier Carreras Calero < [email protected]> wrote: > Hello,**** > > ** ** > > My situation is as follows:**** > > ** ** > > Currently, before the login screen displays a selection screen of the > authentication method. The user chooses one of the methods and > authenticates. Currently the methods are user / password with jdbc and > X.509. Now I want to implement a new method, which consists of dynamic key > .**** > > ** ** > > To do this, I created the following files:**** > > ** ** > > casNewLoginView.jsp à This file is the same as casLoginView.jsp, for > testing**** > > AuthenticationNewViaFormAction.java **** > > ** ** > > I added the login-webflow.xml**** > > ** ** > > *<view-state id="viewNewLoginForm" view="casNewsLoginView" > model="credentials">* > > * <var name="credentials" > class="org.jasig.cas.authentication.principal.UsernamePasswordCredentials" > />* > > * <binder>* > > * <binding property="username" />* > > * <binding property="password" />* > > * </binder>* > > * <on-entry>* > > * <set name="viewScope.commandName" value="'credentials'" />* > > * </on-entry>* > > * <transition on="submit" bind="true" validate="true" > to="realSubmit">* > > * <set name="flowScope.credentials" value="credentials" />* > > * <evaluate > expression="authenticationNewViaFormAction.doBind(flowRequestContext, > flowScope.credentials)" />* > > * </transition>* > > * </view-state>* > > * * > > I added the cas-servlet.xml**** > > ** ** > > * <bean id="authenticationNewViaFormAction" > class="org.jasig.cas.web.flow.AuthenticationNewViaFormAction"* > > * > p:centralAuthenticationService-ref="centralAuthenticationService"* > > * > p:warnCookieGenerator-ref="warnCookieGenerator" />* > > ** ** > > The point is that when doing submit in the new screen is launched instead > of AuthenticationNewViaFormAction.java AuthenticatioViaFomAction, and if I > put in the form CommandName = "/ newLogin" shows the following error:**** > > ** ** > > java.lang.IllegalStateException: Neither BindingResult nor plain target > object for bean name '/newLogin' available as request attribute.**** > > ** ** > > ** ** > > Thanks**** > > ** ** > > ** ** > > ** ** > > ** ** > > -- > 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
