Hi all,
Similar to this solution, yo can check service param in casLoginView.jsp and
use a css or another:
....
<c:set var="aplicacion" value="${param.service}"/>
<c:if test="${aplicacion == null}">
<style type="text/css" media="screen">@import
'css/cas.css'/**/;</style>
</c:if>
<c:if test="${fn:indexOf(aplicacion, 'app_name') != -1}">
<style type="text/css" media="screen">@import
'css/cas_app_xxx.css'/**/;</style>
</c:if>
....
Hope it helps, regards,
Diego
Xuejin Ruan wrote:
>
> Hi Dean,
>
> I am pretty much in the same situation as you, and I did manage to
> implement multiple login views based on which application or what server
> the user is hitting. What I did was, I created several different brands of
> login views, then rewrite casLoginView.jsp something like follows:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
> <%@ page contentType="text/html; charset=UTF-8" %>
>
> <%
> String brand = request.getParameter( "service" );
> if( brand != null && !brand.equals( "" ) )
> {
> if( brand.contains( "Yakima" ) )
> pageContext.forward("casLoginViewYakima.jsp");
> else if ( brand.contains( "Columbia" ) )
> pageContext.forward("casLoginViewColumbia.jsp");
> else if ( brand.contains( "CountyView" ) )
> pageContext.forward("casLoginViewCountyViewWeb.jsp");
> else pageContext.forward("casLoginView_default.jsp");
> }
> %>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> That way you can give user different login view while behind the scene
> everthing remains the same.
>
> Hope that helps.
>
> Regards,
>
> Xuejin
>
>
>
> deanhe01 wrote:
>>
>> Out of curiosity, what is the reason you recommend against multiple
>> login flows. My main arguement against it is maintainability but I would
>> like to know your thoughts on it
>>
>> Dean
>>
>>
>> scott_battaglia wrote:
>>>
>>> We don't really recommend multiple login flows, and I've never actually
>>> tried it. You'd have to look at the Spring Web Flow 1.0 documentation
>>> to
>>> see how to configure multiple flows.
>>>
>>> Cheers,
>>> Scott
>>>
>>>
>>> On Tue, Jul 21, 2009 at 11:52 AM, deanhe01
>>> <[email protected]>wrote:
>>>
>>>>
>>>> First of all,
>>>>
>>>> Thank you Scott, Marvin,Andrew,Bruno et. al. for putting up with noob
>>>> questions and patiently guiding me through the CAS universe. I now
>>>> have a
>>>> CAS solution set up that proxies successfuly, supplies user roles from
>>>> several different sources, and soon, will have a Kerberos solution to
>>>> replace the NTLM currently used.
>>>>
>>>> My question relates to a reply Scott made regarding multiple login
>>>> forms
>>>>
>>>> Specificially(noob question) are there any samples of how to set up
>>>> multiple
>>>> instances of a login flow?
>>>>
>>>> I have multiple applications that I will be "Cassifying" All of our
>>>> users
>>>> resist change and want their login pages to look like they do now so I
>>>> am
>>>> assuming multiple instances of the login flow that present a different
>>>> view
>>>> is the way to go.
>>>>
>>>> Thanks again
>>>>
>>>> Dean
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Wanted-to-say-thanks-and-ask-Yet-Another-Question-tp24590403p24590403.html
>>>> Sent from the CAS Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> --
>>>> 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
>>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Wanted-to-say-thanks-and-ask-Yet-Another-Question-tp24590403p24695675.html
Sent from the CAS Users mailing list archive at Nabble.com.
--
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