Hi,

I am using Apache and mod_jk as a front end to my tomcat instance.

I wish to map a request parameter that is coming from a client which is
specified as sessionid (I have no control over this).  Using mod_rewrite
I have success mapping sessionid to jsessionid as follows when sessionid
appears as the last key value pair;

    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{QUERY_STRING} ^(.*)SESSIONID=(.*)$ [NC]
    RewriteRule ^(.*)$ $1;jsessionid=%2?%1

So when it reaches Tomcat the session bean is available to me, and on
the response to the client I write a sessionid response variable that it
reads.

My question is how to change this test to match the query parameter
sessionid so that it doesn't always have to appear as the last key value
pair as this is causing me problems.

I need to parse ?var1=a&sessionid=b&var2=c and place the value of
sessionid in jsessionid.

Any help would be appreciated.

Thanks,

Norman

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to