Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] how to redirect using cookie info?

Greetings all,

I'm using embedded Jetty.  I have a preferences page where users can specify "old" or "new" style pages.  User preferences are stored in cookies via _javascript_.

I also have links on the pages for example:

<li><a href=""><li><a href="">...

Here's what I want to happen:  If the user clicks on link1 and the preference cookie is "old" then I want the link to be sent to link1.old.html.

I've briefly looked briefly at Jetty RedirectPatternRule and RewriteRegexRule but as far as I can tell these won't let me construct a new URL from the old URL plus cookie information?  Any suggestions on the best way to accomplish my desired goal are greatly appreciated.

Thanks.

Lou.

Back to the top