Hi, 

What I did to achieve similar goal is, I created several different brands of
login views based on the original casLoginView.jsp, then rewrite default
casLoginView.jsp something like follows (it checks the URL and decide which
view to forward to): 

~~~~~~~~~~~~~~~~~~~~~~~~~~ 
<%@ 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 you
still use CAS login frame. 

Hope that helps. 

Regards, 

Xuejin 


ashik-5 wrote:
> 
> Hi,
> We have three application running in our company. I am using CAS for
> authentication.
> But my requirement is:
> - I don't want to go to CAS default login page. User enters URL specifying
> their application needed, now depending on this URL, I want to redirect
> user
> to different login page for different application. Each application indeed
> use CAS login frame.
> 
> Where do I need to write the code to check URL, like
> response.getQueryString()?
> And after noticing the application demanded, how I will redirect to
> different login page?
> For example: If i use
> response.sendRedirect(response.encodeRedirectURL(url))?
> where will I map this url ?
> 
> Please help me.
> 
> -- 
> 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/How-to-redirect-to-different-login-page-tp25018752p25046504.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

Reply via email to