Hi.
Velocty by itself is just a template engine, it knows nothing about
HTTP. But if you use VelocityTools, or if you just put the HTTP response
into the context, you can write the same :
$response.setHeader("Cache-Control","no-cache"); ## HTTP 1.1
$response.setHeader("Pragma","no-cache"); ## HTTP 1.0
$response.setDateHeader("Expires", 0); ## prevents caching at the proxy server
Claude
On mer, 2009-01-07 at 00:35 -0800, raghuprasad wrote:
> Hi all,
>
> Is it possible o write Scriplets (like in JSP) in Velocity?
>
> Can we set request attributes in Velocity?
>
> How to clear the Browser cache from velocity? below is the one which can be
> done from JSP
>
> <% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
> response.setHeader("Pragma","no-cache"); //HTTP 1.0 respocnse.setDateHeader
> ("Expires", 0); //prevents caching at the proxy server %>
>
> Please let me know your thought, i am badly stuck up in some bug.....Raghu
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]