On 02/04/2010 14:36, Martin Gainty wrote:
Paul and Pid
i would suggest directing all requests to SearchServerServlet
e.g. default servlet<url-pattern>/</url-pattern>
It's fairly clear tha... Sorry lost the will to continue.
p
then the SearchServerServlet will do a request.getRequestURI
and then do regex on the Request URI
and SearchServerServlet will redirect or forward from there
allowing reg expressions in url-pattern is a much needed upgrade request for
the next TC version
https://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%207
(expect blowback if this feature is not specifically addressed in Servlet 3.0
spec)
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
Date: Fri, 2 Apr 2010 11:26:36 +0100
From: p...@pidster.com
To: paul_t...@fastmail.fm
CC: users@tomcat.apache.org
Subject: Re: Would like to extract every request to servelt except index.html
On 02/04/2010 11:09, Paul Taylor wrote:
Pid wrote:
On 02/04/2010 09:51, Paul Taylor wrote:
I would like every request to be redirected to a central servlet EXCEPT
if the request is simply index.html, but at the moment everything gets
redirected to the servlet, how could I do what I want
This is extract from my web.xml
<servlet-mapping>
<servlet-name>SearchServerServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
The above makes your servlet the default servlet, so it'll handle all
requests that aren't handled by more specific url-patterns. The
welcome files won't be processed.
You could employ a Servlet Filter which analyses the requestURI and
forwards to your servlet, but that calls chain.doFilter(hreq, hres)
otherwise.
Hmm, I know why it doesnt work but i was hoping I could add something to
this file so that the servlet doesnt pickup index.html, is that not
possible.
Have you found any clues in the Servlet Spec, or the Tomcat docs that
indicate that it _is_ possible?
p
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org