M
Mike Baroukh
Hi.
I thought about the following but don't see how to do.
Suppose I have some static content in database and I wan't to have
them
served by apache. For this, it would be nice to :
- An url like /static/image.gif is called
- Apache do not found it, so he call error document. It could be a
servlet.
- This servlet see if it is something it can generate. If no, it
returns
a true 404. Else, it generate it and forward the request to the
generated content.
- Subsequent calls to the content will return the content directly
because it exists ...
My problem is that the 404 servlet knows nothing about the initial uri
of the object that was requested. At least, I can't see where this
information is.
Does anybody have any idea ?
Thanks in advance.
I thought about the following but don't see how to do.
Suppose I have some static content in database and I wan't to have
them
served by apache. For this, it would be nice to :
- An url like /static/image.gif is called
- Apache do not found it, so he call error document. It could be a
servlet.
- This servlet see if it is something it can generate. If no, it
returns
a true 404. Else, it generate it and forward the request to the
generated content.
- Subsequent calls to the content will return the content directly
because it exists ...
My problem is that the 404 servlet knows nothing about the initial uri
of the object that was requested. At least, I can't see where this
information is.
Does anybody have any idea ?
Thanks in advance.