You might need to actually create the action to do that. I'd also recommend
using the static method on the SimpleWebApplicationServiceImpl (look at the
CasArgumentExtractor class).

-Scott

-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia


On Wed, Feb 18, 2009 at 4:28 PM, Andrew Feller <[email protected]> wrote:

>  So ...
>
> <action-state id="initialFlowSetup">
>     <action bean="InitialFlowSetupAction" />
>     <transition on="success" to="decideWhetherToSetService" />
> </action-state>
>
> <decision-state id="decideWhetherToSetService">
>     <if test="${flowScope.service == null}" then="setDefaultService"
> else="ticketGrantingTicketExistsCheck" />
> </decision-state>
>
> <action-state id="setDefaultService">
>     <set attribute="flowScope.service" value="new
> SimpleWebApplicationServiceImpl('http://www.example.com')"<http://www.example.com%E2%80%99%29%E2%80%9D>/>
>     <transition to="ticketGrantingTicketExistsCheck" />
> </action-state>
>
> ^^;
>
> Even with the books I have on SWF, I can never figure their configuration
> correctly.
>
> Thanks Scott,
> A-
>
> On 2/18/09 3:18 PM, "Scott Battaglia" <[email protected]> wrote:
>
> You can create one using this:
>
> http://developer.jasig.org/source/browse/jasigsvn/cas3/trunk/cas-server-core/src/main/java/org/jasig/cas/authentication/principal/SimpleWebApplicationServiceImpl.java?r=42869
> (there are two static methods, depending on whether you want single log out
> enabled or not)
>
> Then place it into flowScope.service
>
> -Scott
>
> -Scott Battaglia
> PGP Public Key Id: 0x383733AA
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
>
> On Wed, Feb 18, 2009 at 3:44 PM, Andrew Feller <[email protected]> wrote:
>
> I'm looking to set a default service to be used in Spring Web Flow in case
> one has not been provided by the user.  However, it is impossible to
> override the external context parameter map and since the flowScope.service
> variable is an instance of WebApplicationService, I don't know how to
> instantiate an instance as necessary.  Has anyone been able to do this?
>
> Thanks,
> Andrew
>
>
> --
> Andrew Feller, Analyst
> LSU University Information Services
> 200 Frey Computing Services Center
> Baton Rouge, LA 70803
> Office: 225.578.3737
> Fax: 225.578.6400
>
> --
> 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