HI! Loïc
I am also using the 3.2.3 version, I think i should have a
look at the 4.0 version also.
I think the approach that you are taking to handle the rewriting
is a good one, though i have got a question on that
how do you get to know that you have encountered a url, let me
rephrase it.
Like you have a hunk of a content in which there are a lot
of <a> tags and form acitons now how will your rewriter get
triggered so that it rewrites the urls before it gets out
to the user.
I mean to ask how does your rewriter plugs into the whole scheme of
things
TAI
ashish
Loïc Lefèvre
<llefevre@fiv To: <[EMAIL PROTECTED]>
ia.com> cc:
Subject: RE: Customize Url Rewriting +
QUESTION
07/30/2001
12:13 PM
Please
respond to
tomcat-user
Yes you can, I'm developping a URLRewriter servlet because of the
problemSSS
I
encounter using mod_rewrite alone :(
I Load it on startup and manage myself the url rewriting by using
response.sendRedirect or
myMainApplicatioSerlvet.doGet(request,response) + some simple rules ;)
Using servlet aliasing in tomcat is not as powerful as I expect.
Does tomcat 3.3 or 4.0 use more regular expressions for this?
(I use tomcat 3.2.3).
Loïc Lefèvre
-----Message d'origine-----
De : Ashish Bajpai [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 30 juillet 2001 17:55
À : [EMAIL PROTECTED]
Objet : RE: Customize Url Rewriting
Thanks
I will try it. In the mean while is it essential for me to use
apache ? can i do something by only using Tomcat.
thanks
ashish
Loïc Lefèvre
<llefevre@fiv To:
<[EMAIL PROTECTED]>
ia.com> cc:
Subject: RE: Customize Url
Rewriting
07/30/2001
11:51 AM
Please
respond to
tomcat-user
The answer is YES, using mod_rewrite apache module.
Add it to your <VirtualHost></VirtualHost> or in mod_jk.conf
if you don't use Virtual Host.
example:
RewriteEngine on
RewriteLog /usr/local/tomcat/logs/rewrite.log
RewriteLogLevel 9
RewriteCond %{REQUEST_URI} ^/(.*) [NC]
RewriteRule ^/(.*) /index.jsp?$1 [PT]
;-)
-----Message d'origine-----
De : Ashish Bajpai [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 30 juillet 2001 17:38
À : [EMAIL PROTECTED]
Objet : Customize Url Rewriting
Hi!
I was wondering if there is a way that one can add something to
the url rewirting scheme.
To make things clear what i want is this
Can i plugin some code so that all the urls in the html/jsp pages for
my site can have a content attirbute some thing of this sort.
http://mysite.com/home/ugotit.jsp becomes
http://mysite.com/index.jsp?jsessionid=......&content=ugotit.jsp.
TAI
ashish