David,
I want to redirect perhaps a dozen links in directories that have a
main page accessed something like:
/stuff/start-page.html
In thinking about this, maybe my best solution is to rename the main
page to index.html for simplicity and use the
Thanks for everyone's help on this and my related message.
I found that using org.tuckey.web.filters.urlrewrite.UrlRewriteFilter
works well: http://tuckey.org/urlrewrite/
With entries like:
rule
from/diglloyd/free/CardReaders/CardReaders.html/from
to
I previously asked about remapping URLs and got some helpful
responses. In a nutshell, this was recommended:
http://tuckey.org/urlrewrite/
Looks very good for some purposes.
But I also want to solve a much simpler problem--
I have a very large amount of static content (articles), with each
DIGLLOYD INC wrote:
I previously asked about remapping URLs and got some helpful
responses. In a nutshell, this was recommended:
http://tuckey.org/urlrewrite/
Looks very good for some purposes.
But I also want to solve a much simpler problem--
I have a very large amount of static content
David,
Yes, I understand how relative paths work.
The problem is that the jsp include directives:
- include an html page that is *not* in the same directory as the jsp
page;
- the relative links in the included html file are supposed to be
relative to their own directory not the directory
I see the problem. You could use absolute paths in jsp includes and the
servlet container would understand them as relative to the webapp's root
as opposed to the server's root:
Say you have this file layout
webapp
|index.jsp
|article1
|index.jsp
|article1.html
|
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Lloyd,
DIGLLOYD INC wrote:
| My pages all use relative links eg .., ./, etc. So this works
| ***when the page being included is in the same directory**.
|
| But when the include page is in another directory, none of the relative
| links work. None
On Fri, Apr 25, 2008 at 1:00 PM, DIGLLOYD INC [EMAIL PROTECTED] wrote:
The problem is that the jsp include directives:
- include an html page that is *not* in the same directory as the jsp page;
I've never -- and that's a long time, web-wise :-) -- liked relative paths
for this reason, among
Hassan,
As I said there are other issues. Making them fixed paths would mean
I couldn't edit them, copy them (for revisions, etc) without having to
fix up numerous pages. And the uses are not only when routed through
a web server.
Lloyd
On Apr 25, 2008, at 1:08 PM, Hassan Schroeder
Christopher,
Well, I'm not a web expert, so if there's a better way (redirect) I'm
all ears.
From what I can find by googling, redirects have a slew of issues of
their own. But I'm a newbie at this, so I might be misunderstanding.
How would I do a redirect in Tomcat for my stated issue,
Thanks, I've tried that. Including with a full path still makes the
included file relative to the directory in which the jsp resides.
On Apr 25, 2008, at 1:02 PM, David Smith wrote:
I see the problem. You could use absolute paths in jsp includes and
the servlet container would understand
On Fri, Apr 25, 2008 at 1:12 PM, DIGLLOYD INC [EMAIL PROTECTED] wrote:
As I said there are other issues. Making them fixed paths would mean I
couldn't edit them, copy them (for revisions, etc) without having to fix up
numerous pages.
Right, it's work to fix them -- but you're spending time
Never mind .. I saw your other responses and the best solution is the
redirect option. After following the redirect, the browser will have
the correct URL for calculating the full url of each of the page's
resources.
--David
David Smith wrote:
I see the problem. You could use absolute
Seconded.
DIGLLOYD said the following:
From what I can find by googling, redirects have a slew of issues of
their own. But I'm a newbie at this, so I might be misunderstanding.
The only trouble I've had with redirects is when you redirect to a
page which redirects to a page which
DIGLLOYD INC [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Christopher,
Well, I'm not a web expert, so if there's a better way (redirect) I'm all
ears.
From what I can find by googling, redirects have a slew of issues of
their own. But I'm a newbie at this, so I might be
15 matches
Mail list logo