tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harri Päiväniemi <harri.paivani...@yle.fi>
Subject Re: .htm problem
Date Mon, 30 Jul 2001 12:17:55 GMT
Oh yes,

Jsp- code is not processed, of course.

If you are using Apache, you can resolve that situation with Apache's
redirection. Use "redirection with regular expressions", which means that
you use "RedirectMatch"- tag to redirect for example all /foo/index.html-
requests to foo/index.jsp.

The second and little bit heavier choise is to use mod_rewrite and do the
same.

I think this will work. Situtation is the very same if client just requests
index.jsp directly, because Apache takes the request to index.html and
redirects it without html- parsing to the new location.

-Harry



----- Original Message -----
From: "Mark Muffett" <markm@its-axiom.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, July 30, 2001 3:05 PM
Subject: Re: .htm problem




Tried it (in fact that's what I'm doing pro temp, but it doesn't function
as
I would like).

I have index.htm as a link to index.jsp.

If I directly select index.jsp it works as expected, of course.  If I
select
index.htm, the jsp code is not processed (you can see it if you try to view
the source in the browser).

Any ideas?

Mark

----- Original Message -----
From: <harri.paivaniemi@yle.fi>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, July 30, 2001 12:48 PM
Subject: Re: .htm problem


>
> Ok,
>
> ... but why not just use symbolic links from index.html to index.jsp aso.
>
> -Harry
>
>
>
>
>
>                     "Mark
>                     Muffett"             To:
>                     <markm@its-ax        <tomcat-user@jakarta.apache.org>
>                     iom.com>             cc:
>                                          Subject:     Re: .htm problem
>                     30.07.2001
>                     14:40
>                     Please
>                     respond to
>                     tomcat-user
>
>
>
>
>
>
> No good - the links are from the outside world and I have no control over
> them.
>
> Mark
>
> ----- Original Message -----
> From: <harri.paivaniemi@yle.fi>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Monday, July 30, 2001 12:20 PM
> Subject: Re: .htm problem
>
>
> >
> > Just start using some good website editor (Dreamweaver 4). Make a new
> site
> > there for your content and let Dreamweaver examine links and change
> > filenames.
> >
> > Of course world is full of different kind of sed/awk/vi- tricks, but in
> > serious website maintenance you really should use an editor.
> >
> > -Harry
> >
> >
> >
> >                     "Mark
> >                     Muffett"             To:
> >                     <markm@its-ax
<tomcat-user@jakarta.apache.org>
> >                     iom.com>             cc:
> >                                          Subject:     Re: .htm problem
> >                     30.07.2001
> >                     14:04
> >                     Please
> >                     respond to
> >                     tomcat-user
> >
> >
> >
> >
> >
> >
> > Thanks, but I don't think it will work for my purposes - I want to log
> the
> > refering site and I think I'll lose the info if I do that.
> >
> > Regards
> >
> > Mark
> >
> > ----- Original Message -----
> > From: "César Martínez Cabanas" <cmcabanas@cisgalicia.org>
> > To: <tomcat-user@jakarta.apache.org>;
> <andrewdrobson@netscapeonline.co.uk>
> > Sent: Monday, July 30, 2001 11:21 AM
> > Subject: RE: .htm problem
> >
> >
> > > you can use a javascript or a meta that redirect de index.html to
> > index.jsp
> > >
> > >
> > > ----- Original Message -----
> > > From: Andrew Robson <andrewdrobson@netscapeonline.co.uk>
> > > To: <tomcat-user@jakarta.apache.org>
> > > Sent: Monday, July 30, 2001 12:06 PM
> > > Subject: Re: .htm problem
> > >
> > >
> > > > On Mon, 30 Jul 2001, you wrote:
> > > > >
> > > > > I have a web site to which a lot of cross-links have been built
up
> > over
> > > time.  Inevitably the links are to pages with names like index.htm.
I
> > would
> > > like to change these to jsp pages, but of course I can't change the
> name
> > > without breaking the link (and losing traffic).
> > > > >
> > > > > Any ideas how I can put jsp functionality on a jsp page (I
already
> > have
> > > Tomcat serving out the .htm pages and I have tried simply using an
htm
> > page
> > > like a jsp page, but it doesn't work)?
> > > > >
> > > > > Many thanks for any help.
> > > > >
> > > > > Mark
> > > > >
> > > >
> > > > Mark,
> > > >   All I can suggest is the obvious. Write a program to do a global
> > search
> > > and
> > > > replace (if you are on Linux a little sed script should do the
> trick).
> > Put
> > > in
> > > > your index.jsp, run your program to change all references in your
> html
> > > from
> > > > index.htm to index.jsp, test your links and then archive your
> index.htm
> > > page.
> > > >
> > > > andrew
> > > >
> > >
> >
> >
> >
> >
>
>
>
>



Mime
View raw message