I think you will have to code specifically for Tomcat. The only way to get
jsession encoded into your string is with Request.encodeURL or
Request.encodeRedirectURL, but they won't do it because Tomcat will
determine that encoding wasn't necessary, and will return your string as-is.
In the meantime, you can intercept includes by writing your own taglib tag
to do the include. With your code behind the include, you can do what you
wanted to do in the filter chain.
Example use of a custom include:
%@page contentType=text/html%
%@ taglib uri=/mylib prefix=my %
html
-Original Message-
From: AAron nAAs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 12:45 PM
To: [EMAIL PROTECTED]
Subject: Re: filter jsp:include servletPath?
Due to the complexity of the question and probably vendor
specific-ness of
the answer, I've altered course and solved
Does anyone know of a good request lifecycle diagram showing all the steps
in satisfying a Java Server request?
I'd like to see the exact ordering of all the components that a request goes
through such as Authentication, Filters, Listeners, Valves, etc... Either a
vendor specific or a generic
Although off topic, the standard unix crypt algorithm has been
written/ported to many languages (I've even seen source code in books..
Applied Cryptography I think).
I know versions exist for Java, or you could just convert a basic, C, C++ or
Pascal version to Java.
Seek with Google,
-AAron
=/include.html/
I'm still interested in knowing if a jsp:include intercept is possible, but
I'm not waiting for the answer anymore. If there are any die hard
coders/detail-ists out there, let me know if it's even possible without
modifying Tomcat itself.
-AAron
From: AAron nAAs [EMAIL PROTECTED
I'm trying to intercept a jsp:include so that I can adjust the requested
file (ie: /include.html) to a different directory/file (ie:
/otherdir/otherfile.html). If there is an easy way (Filter, Valve,
Listener, ...) just let me know. NOTE: I've already created and installed a
request filter in
You may get a flood of email telling you to read up on taglibs.
You could find or make an xml parsing taglib.
-AAron
From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: JSP + custom tags (XML)
Date: Thu, 28 Nov 2002 09:50:33
Hi all,
This is more clarification about my attempts to automatically intercept and
modify a .jsp request's servletPath as well as all the embedded
jsp:include files.
Examples:
http://blah.com/index.jsp would run approot/blah/index.jsp or
approot/default/index.jsp based on which was first