tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Layman <randy.lay...@aswethink.com>
Subject RE: .htm problem
Date Mon, 30 Jul 2001 11:30:14 GMT

	Why don't you just map the index.htm file to index.jsp?  Craig
posted an example of how to do this over the weekend so you should be able
to find it in the list archives.

	Randy

> -----Original Message-----
> From: Mark Muffett [mailto:markm@its-axiom.com]
> Sent: Monday, July 30, 2001 8:05 AM
> To: tomcat-user@jakarta.apache.org
> 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