2008-03-blog.html" %>
On Mar 24, 2008, at 11:30 AM, Caldarale, Charles R wrote:
From: DIGLLOYD INC [mailto:[EMAIL PROTECTED]
Subject: Re: replacement for symbolic links to files (Apache
httpd to Tomcat)
Wouldn't "/blog.html" refer to http://diglloyd.com/blog.html ? That
wo
> From: DIGLLOYD INC [mailto:[EMAIL PROTECTED]
> Subject: Re: replacement for symbolic links to files (Apache
> httpd to Tomcat)
> Wouldn't "/blog.html" refer to http://diglloyd.com/blog.html ? That
> would be wrong...
Sorry, I didn't realize your webapp
On Mar 24, 2008, at 10:58 AM, Caldarale, Charles R wrote:
From: DIGLLOYD INC [mailto:[EMAIL PROTECTED]
Subject: Re: replacement for symbolic links to files (Apache
httpd to Tomcat)
jsp
/diglloyd/blog.html
Take out the "/diglloyd", leaving "/blog.ht
> From: DIGLLOYD INC [mailto:[EMAIL PROTECTED]
> Subject: Re: replacement for symbolic links to files (Apache
> httpd to Tomcat)
>
>
> jsp
> /diglloyd/blog.html
>
Take out the "/diglloyd", leaving "/blog.html"; the
David/Hassan,
I've written a filter since I couldn't get the
approach to work.
This is what I've got. It needs generalization, but it does the job.
My question is this: what is the right way to forward the request?
The way I'm doing it bypasses the rest of the filter chain...or does
David,
The URL I want to see work is http://diglloyd.com/diglloyd/blog.html
(currently running on Apache with a symlink currently pointing to
2008-03-blog.html).
I wrote blog.jsp which includes the current blog file:
<%@ include file="2008-03-blog.html" %>
That works great for: http://di
Thanks to both of you. I'll give it a try.
Lloyd
On Mar 24, 2008, at 8:12 AM, David Smith wrote:
Oh and by the way ... Hassan's idea is really good as well. For
that, you just need to write a class that implements the
javax.servlet.Filter interface and define the servlet in your
web.xml
Oh and by the way ... Hassan's idea is really good as well. For that,
you just need to write a class that implements the javax.servlet.Filter
interface and define the servlet in your web.xml file.
The servlet spec is an excellent resource for this kind of stuff:
http://jcp.org/aboutJava/comm
... takes the name of a servlet as
defined by the ... element, not the servlet's class.
That's what the ... element is for. In this case,
the jsp servlet is already defined in the global web.xml file found at
conf/web.xml right next to the server.xml file. Please don't edit this
web.xml
On Mon, Mar 24, 2008 at 7:39 AM, DIGLLOYD INC <[EMAIL PROTECTED]> wrote:
> Thanks, this seems like it might be extensible to more than one file
> as well.
>
> I'm new to Servlet programming (though experienced in java), so I
> guess I'll hit the docs to see how to do this, unless you have a co
David,
I'm new to programming Servlets/JSP, I didn't realize a mapping> could just specify a an not specify a servlet
class, nor do I understand exactly what this example mapping does (and
if it does it without other side-effects).
Do you mean to use this in conjunction with a "blog.jsp" w
Hassan,
Thanks, this seems like it might be extensible to more than one file
as well.
I'm new to Servlet programming (though experienced in java), so I
guess I'll hit the docs to see how to do this, unless you have a code
snippet handy--thanks.
Lloyd
On Mar 24, 2008, at 6:48 AM, Hassan
No, not behind httpd, but thanks.
On Mar 24, 2008, at 5:22 AM, [EMAIL PROTECTED] wrote:
You can also try redirect at the Apache httpd layer (I assume Tomcat
is
hidden behind httpd), redirecting blog.html to the 1-liner JSP file
you
mentioned.
Hai Vu
David Smith <[EMAIL PROTECTED]> wrote on
On Sun, Mar 23, 2008 at 10:50 PM, DIGLLOYD INC <[EMAIL PROTECTED]> wrote:
> What is the best way to make blog.html => 2008-03-blog.html ? (eg if
> March 2008 is the current blog)
I'd write a simple Filter that gets the current blog location from a
properties file -- e.g. blog.html=2008-03-blo
You can also try redirect at the Apache httpd layer (I assume Tomcat is
hidden behind httpd), redirecting blog.html to the 1-liner JSP file you
mentioned.
Hai Vu
David Smith <[EMAIL PROTECTED]> wrote on 24/03/2008 08:13:40 AM:
> Here's a possibility:
>
> Write the quick and dirty blog jsp, na
Here's a possibility:
Write the quick and dirty blog jsp, name it blog.html, and then add this
to your web.xml file:
jsp
blog.html
The idea is to specifically map blog.html to the jsp servlet for jsp
processing. I haven't tried it, but it seems like it should work.
--David
DIGLLOYD I
16 matches
Mail list logo