URL Redirection Help

Hi.

My problem seems simple but can't find any good solution.

I'm working with JSP's and what i want to do is use the same JSP's but different .CSS.

Example.

If i join to www.jsp.com i wil see a login screen and as i login i can navigate through some more pages.

But if i join to www.jsp.com/max i want to see the same JSP's but in a different way, i mean customized with other colors or images.

How can i do that?

Please help this is urgent

thanks.

p.s. also using struts

[538 byte] By [Sobitasa] at [2007-10-2 16:47:25]
# 1

Sample code:

<head>

<%

if(request.getRequestURI().equals(" First URL "))

{

%>

<link rel="stylesheet" type="text/css" href="/css/style-basic.css" />

<%

} else{

%>

<link rel="stylesheet" type="text/css" href="/css/style-max.css" />

<%} %>

</head>

And maintain two different style sheets.

Shama

stanveera at 2007-7-13 17:58:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

that's great.

but any ideas about using a parser so i can catch what is between two slashes?

what i try to do is like some customized pages for our clients.

ex.

www.123.com/login.jsp

www.123.com/java/login.jsp

www.123.com/struts/login.jsp

all pages will use the same jsp but different css.

Sobitasa at 2007-7-13 17:58:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...