Btw, Kris - I just had to make use of this code that you provided, and
it works perfectly. Sweet!
Kris Schneider wrote:
If you can accomplish what you want via Apache rewrite rules, that seems like a
simpler solution. If that doesn't work out, here's a JSP/JSTL equivalent of how
html:img comes
James Mitchell wrote:
A bit of history on this subject:
* From: Craig R. McClanahan
* Subject: Re: Why would jsessionid not appear?
* Date: Wed, 08 Aug 2001 12:09:26 -0700
The jsessionid path parameter will only be added if the servlet
container
does not know whether your client supports
If it's any consolation, I just tried the original JSP-only code I posted with
TC 4.1.24 and it worked fine...
Quoting Ruth, Brice [EMAIL PROTECTED]:
James Mitchell wrote:
A bit of history on this subject:
* From: Craig R. McClanahan
* Subject: Re: Why would jsessionid not appear?
*
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:32 AM
To: Struts Users Mailing List
Subject: Re: how to disable (or work around) jsessionid in html:img
sources
James Mitchell wrote:
A bit of history on this subject:
*
Bizarre ... dunno what's up with my config, then. Not a biggie, I guess
- my workaround still works, I guess. I just wanted to use this because
I was using a scriptlet to generate some *very* dynamic code and got
into a situation where I couldn't use html:rewrite because it'd be
nested within
Saul Q Yuan wrote:
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:32 AM
To: Struts Users Mailing List
Subject: Re: how to disable (or work around) jsessionid in html:img
sources
James Mitchell wrote:
A bit of history on this
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 11:27 AM
To: Struts Users Mailing List
Subject: Re: how to disable (or work around) jsessionid in html:img
sources
Saul Q Yuan wrote:
-Original Message-
From: Ruth, Brice
The HTTP/1.0 spec defines a URI as:
...
rel_path = [ path ] [ ; params ] [ ? query ]
...
The Servlet spec states:
The session id must be encoded as a path parameter in the URL string. The
name of the parameter must be jsessionid.
Quoting Ruth, Brice [EMAIL PROTECTED]:
Saul Q Yuan wrote:
OK, so that looks like it makes sense, but why is Apache barfing on the
'params', then? I can't imagine that Apache doesn't support the HTTP/1.0
spec entirely.
Kris Schneider wrote:
The HTTP/1.0 spec defines a URI as:
...
rel_path = [ path ] [ ; params ] [ ? query ]
...
The Servlet spec
You know, in light of the fact that it may be standard and to the spec,
it's funny that most of the servlet containers that I use (Tomcat,
Resin, Jetty) don't recognize their own rewritten urls.
To me, that's just unacceptable.
Someone with some influence (Craig? Remy?) might want to address
Ruth, Brice wrote:
Saul Q Yuan wrote:
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:32 AM
To: Struts Users Mailing List
Subject: Re: how to disable (or work around) jsessionid in html:img
sources
James Mitchell wrote:
A bit of
James Mitchell wrote:
You know, in light of the fact that it may be standard and to the spec,
it's funny that most of the servlet containers that I use (Tomcat,
Resin, Jetty) don't recognize their own rewritten urls.
To me, that's just unacceptable.
Don't blame Tomcat's JK or JK2 connectors
Craig R. McClanahan wrote:
Don't blame Tomcat's JK or JK2 connectors on me! I don't have
anything to do with them :-).
I've only ever been interested in the standalone Tomcat code (and, for
work, the way that Tomcat gets integrated into Sun's web server and
app server products). In all of
Craig R. McClanahan wrote:
Ruth, Brice wrote:
Seems strange that a rule would be set that breaks IETF standards,
doesn't it? Or am I seeing this totally wrong?
In IETF standards terms, the session identifier is a *path* parameter,
not a *query* parameter. Such parameters can actually be
Ruth, Brice wrote:
Hi. I'm using html:img in certain tiles that are used from very
different places in my application with the page attribute to take
advantage of module-relative naming for the image sources. However,
when cookies aren't enabled, or on the first visit to the web
application
Hello
For Apache v3.x you need to put in httpd.conf file this entry :
RewriteRule ^(.*);jsessionid=.*$ $1 [L]
Best regards
Olivier Dutrieux
*
*
Ruth, Brice a écrit :
Ruth, Brice wrote:
Hi. I'm using html:img in certain tiles that are used from very
different places in my application with the
Is this something I can do at a global level, so that it impacts all
virtualhosts defined by the mod_jk auto configuration file generated by
Tomcat's connector?
dutrieux wrote:
Hello
For Apache v3.x you need to put in httpd.conf file this entry :
RewriteRule ^(.*);jsessionid=.*$ $1 [L]
Best
Maybe you can try, But I think the impacts is all pages send to apache
then all virtualhosts defiend by the mod_jk.
Ruth, Brice a crit:
Is this
something I can do at a global level, so that it impacts all
virtualhosts defined by the mod_jk auto configuration file generated by
Tomcat's
If you can accomplish what you want via Apache rewrite rules, that seems like a
simpler solution. If that doesn't work out, here's a JSP/JSTL equivalent of how
html:img comes up with the module path:
%@ page import=org.apache.struts.Globals %
%@ taglib prefix=c
I tried this and got a JSP compile error that MODULE_KEY in
org.apache.struts.Globals couldn't be resolved ...
org.apache.struts.Globals _jspx_th_c_rt_set_0.setValue(
Globals.MODULE_KEY ); ^ 1 error
?!
Kris Schneider wrote:
If you can accomplish what you want via Apache rewrite rules, that
I haven't actually run the code, but I don't see what the issue would
be. If you run:
javap -classpath /path/to/struts.jar org.apache.struts.Globals
You should get something like:
Compiled from Globals.java
public class org.apache.struts.Globals extends java.lang.Object
implements
A bit of history on this subject:
* From: Craig R. McClanahan
* Subject: Re: Why would jsessionid not appear?
* Date: Wed, 08 Aug 2001 12:09:26 -0700
The jsessionid path parameter will only be added if the servlet
container
does not know whether your client supports cookies. How Tomcat
22 matches
Mail list logo