Re: [Simpleweb-Support] Problem of trying simple
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2005-10-10 15:24:56
|
Hi
If you would like to tell the client when something
was last modified you would set:
Response.setDate("last-modified", date)
Setting the Request will have no affect. In short,
setDate and getDate in both the Request and Response
objects will get and set dates in the HTTP request and
response headers respectively. How you use them is up
to you...
Niall
--- Carfield Yim <car...@gm...> wrote:
> In fact, I've override HttpServlet.getLastModified()
> so that the cache
> work better. I guess similar logic in simple is
> Request.setDate("last-modified", date), right?
>
> On 10/10/05, Carfield Yim <car...@gm...>
> wrote:
> > Request?? Or it should be Response?
> >
> > On 10/10/05, Niall Gallagher
> <gal...@ya...> wrote:
> > > Hi
> > >
> > > Yes, you do the following
> > >
> > > Request.getDate("last-modified")
> > >
> > > or if you want to check conditional headers
> > >
> > > Request.getDate("if-modified-since")
> > >
> > > Niall
> > >
> > > --- Carfield Yim <car...@ca...>
> wrote:
> > >
> > > > Anyone know what is the simple api work
> similar to
> > > > the following API
> > > > of HttpServlet?
> > > >
> > > > protected final long getLastModified(final
> > > > HttpServletRequest req)
> > > >
> > > >
> > > >
> > >
>
-------------------------------------------------------
> > > > This SF.Net email is sponsored by:
> > > > Power Architecture Resource Center: Free
> content,
> > > > downloads, discussions,
> > > > and more.
> > > > http://solutions.newsforge.com/ibmarch.tmpl
> > > >
> _______________________________________________
> > > > Simpleweb-Support mailing list
> > > > Sim...@li...
> > > >
> > >
>
https://lists.sourceforge.net/lists/listinfo/simpleweb-support
> > > >
> > >
> > >
> > > Niall Gallagher
> > >
> > >
> > >
> > > __________________________________
> > > Start your day with Yahoo! - Make it your home
> page!
> > > http://www.yahoo.com/r/hs
> > >
> > >
> > >
>
-------------------------------------------------------
> > > This SF.Net email is sponsored by:
> > > Power Architecture Resource Center: Free
> content, downloads, discussions,
> > > and more.
> http://solutions.newsforge.com/ibmarch.tmpl
> > > _______________________________________________
> > > Simpleweb-Support mailing list
> > > Sim...@li...
> > >
>
https://lists.sourceforge.net/lists/listinfo/simpleweb-support
> > >
> >
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content,
> downloads, discussions,
> and more.
> http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Simpleweb-Support mailing list
> Sim...@li...
>
https://lists.sourceforge.net/lists/listinfo/simpleweb-support
>
Niall Gallagher
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
|