RE: Url rewrite

2002-06-06 Thread Shapira, Yoav

Howdy,
You can map servlets in your web.xml to almost any URL pattern you want.

If your webapp is installed under the ROOT context, add the following
into your web.xml:
servlet
  servlet-namefooServlet/servlet-name
  servlet-classfooName/servlet-class
/servlet
servlet-mapping
  servlet-namefooServlet/servlet-name
  url-pattern/foo/url-pattern
/servlet-mapping

See the Servlet Spec, section 11 Mapping Requests To Servlets, for
full details.

If after reading the spec you conclude it's insufficient, you can always
place simple HTML forwarding files, e.g.
html
head
meta http-equiv=REFRESH content=0; URL=/servlet/fooName
/head
/html
where you need them.

And if all the above doesn't meet your needs, you're probably better off
adding apache or another server that does fancier URL-rewriting for you
;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Colin Chalmers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 11:43 AM
To: [EMAIL PROTECTED]
Subject: Url rewrite

Hi,

I've been searching for info concerning url rewriting/mapping with
Catalina
but can't seem to find a definitive answer (except to use Apache with
mod-rewrite).

Problem

I would like to access a servlet
(http://localhost:8080/fooDir/servlet/fooName) with a *nice* name such
as
http://localhost:8080/foo

I've found info whereby server.xml can be changed to map foo to fooDir
and
something similiar in the web.xml but I have to say that I got lost in
the
mountain of answer attempts, each time proposing a (slightly) different
solution.

Can it be done? If so who can show me the light?

Thx in advance

/Colin


--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: URL Rewrite between Apache Tomcat (ah,ah it's very funny toconfigure)

2001-02-09 Thread Jan Labanowski

  You may want to check my installation logs and see how I do rewrite.
Rewrite works with mod_jk, but you need to load mod_jk module BEFORE
mod_rewrite. 

Check the
  http://www.ccl.net/cca/software/UNIX/apache/
namely:
  http://www.ccl.net/cca/software/UNIX/apache/apacheRH7.0/README.html

Jan
[EMAIL PROTECTED]



On Fri, 9 Feb 2001, Ludovic Maitre wrote:

 Hello all,
 
 I have convince my boss that we must use Tomcat for our institutionnal
 webserver but there is a really bad news
 what i haven't detected before : mod_jserv don't manage the rewrite
 rules of Apache :-
 
 So my question is : will i have more luck with mod_jk ? (the handler
 could retrieve the local path of a file from Apache for example ?)
 
 you know it's very important to manage the rewrite rules 'cause in a big
 server, for maintaining old page (and preserving the bookmarks of our
 visitors), we must use the rewrite rules.
 
 So any help would be really appreciated,
 
 Best regards,
 
 -- 
  [EMAIL PROTECTED]
 
  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]