I tried to change:

 

<transition on="submit" bind="true" validate="true" to="realSubmit"> 

 

And 

 

<view-state id="viewSelectorUJForm" view="casSelectUJView" >

            <transition on="submit"  to="sendTicketGrantingTicket"/>

        </view-state>

 

And

 

<action-state id="realSubmit">

       <evaluate
expression="authenticationViaFormAction.submit(flowRequestContext,
flowScope.credentials, messageContext)" />

                               <transition on="warn" to="warn" />

                               <transition on="success"
to="viewSelectorUJForm" />

                               <transition on="error" to="viewLoginForm" />

</action-state>

 

 

But, the ticketGrantingTicketId in SendTicketGrantingTicketAction is null.
Why?

 

 

 

De: Fco Javier Carreras Calero [mailto:[email protected]] 
Enviado el: lunes, 14 de marzo de 2011 17:37
Para: [email protected]
Asunto: [cas-user] New jsp in login-webflow

 

Hi,

 

I want a new jsp is displayed after the login screen, but I want to appear
after checking credentials. Specifically, I want to be shown after
authentication and before validation. From this page you must be able to get
the user online.


How I can do?

 

Right now, I've done in the following way:

 

...

 

<view-state id="viewLoginForm" view="casLoginView" 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="viewSelectorUJForm">

            <set name="flowScope.credentials" value="credentials" />

            <evaluate
expression="externalContext.getSessionMap().put('prCredentials',flowScope.cr
edentials)"/>

            <evaluate
expression="authenticationViaFormAction.doBind(flowRequestContext,
flowScope.credentials)" />

        </transition>

                </view-state>

 

<view-state id="viewSelectorUJForm" view="casSelectUJView" >

            <transition on="submit"  to="realSubmit"/>

        </view-state>

.

But, in this way shows the jsp before authentication.

 

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

Reply via email to