Hi,
This is not hard to do with a Filter, as long as your authentication is
done before this Filter (possibly with another one). Your chain would
then look like:
- Authentication filter (mapped to /*, does nothing if request already
authenticated)
- Rewrite filter (mapped to /*, checks credential
I think the struts list can probably answer this better than this list.
-Tim
Morten wrote:
Hi!
We are using Struts 1.1 and Tomcat 4.1.x at our company.
We are considering to separate our urls from our struts configuration.
Instead of /news.do?articleid=43 we would like the url to look like this:
/n
Hi,
IMHO (literally) this is not that good an idea in that your solution
will be incur more costs (complexity, customization, long-term
maintenance) than benefits (??).
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mo
se who can contribute?
Regards
Mattias Bogeblad
-Ursprungligt meddelande-
Från: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Skickat: den 29 december 2003 19:13
Till: Tomcat Users List
Ämne: RE: URL-rewriting
Howdy,
I'm not an expert on Apache's mod-rewrite, so I'll give you o
Howdy,
I'm not an expert on Apache's mod-rewrite, so I'll give you one possible
pue java solution: a fairly simple filter (a javax.servlet.Filter
filter). Map the filter /* and code your redirection rules in java.
Actually, you might want to look at the balancer webapp (tomcat 5) which
has a Str
Mufaddal,
Wouldnt it be nice a feature like this that one can turn on or off
globally in a container like tomcat ? The existing way to granularly do
it should remain, but a global way to do it would be nice ..
Feel free to submit a patch :)
-chris
---
Wouldnt it be nice a feature like this that one can turn on or off
globally in a container like tomcat ? The existing way to granularly do
it should remain, but a global way to do it would be nice ..
On Tuesday, November 18, 2003, at 09:13 AM, Christopher Schultz wrote:
Mufaddal,
Are there som
Mufaddal,
Are there some
configuration settings in Tomcat 4.1.x that can be set in say the
server.xml or web.xml that can be used ?
Nope. Tomcat won't look through your responses for things that look like
URLs and append all the things you need (like sessison id, etc.).
However, if you are usin
You can use mod_rewrite and mod_proxy to do just this (at least if you
are using apache). See http://www.engelschall.com/pw/apache/rewriteguide/
jeff
Chris Stephens wrote:
> Hi folks,
>
> Apologies if this is a newbie question but I've looked around a fair bit
> (inc. the archives of this l
look about the Valves...
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/catalina/docs/api/org/apache
/catalina/Valve.html
one limitation in using Valves
is that one cannot change the content of a request
is it has already been us
--On 11 February 2002 16:47 +0530 Jiger Java <[EMAIL PROTECTED]> wrote:
Hi,
> http://www.server.com/reseller comes in then the server will
> execute/get/map/etc etc & the final url will become as
> http://server.com/servlet/LoginServlet?role=reseller
> which is then the named servlet be execut
On Thu, 22 Nov 2001, Raphael Mack wrote:
> Date: Thu, 22 Nov 2001 23:17:46 +0100
> From: Raphael Mack <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: URL-rewriting for FORMS
>
> Hi,
>
> I use URL-rewriting for sessionm
Because the sevlet spec says to do so.
The reason why they defined it this way is unknown to me.
> -Ursprüngliche Nachricht-
> Von: Raphael Mack [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 23. November 2001 12:29
> An: Tomcat Users List
> Betreff: Re: Re : URL-rewr
Sorry, forgot this question:
if I want to pass a parameter to the "action" of the FORM, should I
write:
out.println("");
or
out.println("");
or a ';' instead of '&' or a ';' instead of '?'?
or should I insert a hidden formfield for this?
Thanks,
Rapha
--
procreo - Webseitenentwicklung und Ind
Thanks.
Am Freitag, 23. November 2001 08:48 schrieben Sie:
> if you want this encoded with your session
>
> you will have to:
> out.println(" response.encodeURL("./post-data-servlet") + "\">");
> the output will be::
>
is there a special reason why encodeURL appends ";jsessionid..." and
not
--
2001 Nov 23 - 08:57
Raphael Mack <[EMAIL PROTECTED]>
--
>
>Hi,
>
>I use URL-rewriting for sessionmanagement. What's best to include the
>sessio
YueMa wrote:
> Hi there,
> How can I config Tomcat to use URL rewriting as session tracking
> mechanism?
>
> Thanks!
good email for you :-)
http://mikal.org/interests/java/tomcat/archive/view?mesg=35357
http://mikal.org/interests/java/tomcat/archive/view?mesg=35358
Bo
Aug.09, 2001
On Thu, 9 Aug 2001, YueMa wrote:
> Hi there,
> How can I config Tomcat to use URL rewriting as session tracking
> mechanism?
>
URL rewriting is not something a servlet container does for you -- it's
something you have to do in your HTML output yourself.
For example, in a JSP page if you crea
Because form-based login requires the use of sessions, you *must* use URL
rewriting to pass the session id when your clients do not support
cookies. In practical terms, that means your form-based login page should
be a JSP (rather than static HTML) with a element like this:
If your client rea
What about using mod_session?
Use it to turn off cookie tracking and then insert session id's into the
resource URL/list of environment variables? You could then log the session id
out of the environment variables or read it directly as a GET request parameter
in Tomcat depending on how you are
Session tracking without cookies is a huge engineering mess.
I don't quite understand what your choice of server platform
has to do with it. Have you taken a look at the HttpSessionObject?
Is that what you mean with the bug you mention? (I've used cookies
solely, I don't know much about HttpSessio
Hello,
The only solution i had find is to replicate all my "url-rewrited"
folder as context in Tomcat and additionnaly make
a few patchs on Tomcat (and Cocoon).
It seems, after reading the source code of mod_jserv (that i use), that
the request form Apache to Tomcat is redirected AFTER the
URI
Graham Freeman wrote:
> There seems to be something that I am missing in trying to use Tomcat with
> Apache. Can anyone suggest what I should try? I am running Linux on my
> machine. I have Java 1.3 installed, and it is Tomcat 3.1 I am trying to
> get working with Apache 1.3.14
>
Upgrade to T
I have had success in using URL rewriting in 3.2b8.
-Original Message-
From: Milan Adamovic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 3:15 PM
To: [EMAIL PROTECTED]
Subject: FW: URL Rewriting status
What is the latest status of URL Rewriting on port 80?
Has this bug
24 matches
Mail list logo