You could also create a delegate that implements IRender.
Then create the followin method:
public void render(IMarkupWriter writer, IRequestCycle cycle){
List attList = new ArrayList();
Attribute att = new Attribute("http-equiv", "Pragma");
attList.add(att);
att = new Attribute("Content", "NO-CACHE");
attList.add(att);
createMetaTag(writer, attributeList);
}
private void createMetaTag(IMarkupWriter writer, List atts){
writer.begin("meta");
for(int i=0;i<atts.size();i++){
Attribute att = (Attribute) atts.get(i);
writer.attribute(att.getName(), att.getValue());
}
writer.closeTag();
}
On 8/15/05, Patrick Casey <[EMAIL PROTECTED]> wrote:
>
> I think you can just put them in your .html files and/or your border
> component (if you have one, can't you) e.g.
>
>
> <span jwcid="$content$">
> <span jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="Demo
> Application" />
>
> <html>
> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
> </html>
> </span>
>
> > -----Original Message-----
> > From: Jacob von Eyben [mailto:[EMAIL PROTECTED]
> > Sent: Monday, August 15, 2005 7:46 AM
> > To: [email protected]
> > Subject: set http headers (cache-control, etc) in tapestry
> >
> > Hi,
> >
> > I can not find the answer through google, but I hope you can help me.
> > Is it possible to set http headers like:
> > pragma: no-cache
> > cache-control: no-cach
> > through some tapestry configuration?
> >
> > If not, I will map a HttpFilter on .../app that will do the work for me,
> > but of course it is possible in tapesty right? :-)
> >
> > I use tapesty 3 by the way.
> >
> > Regards
> > Jacob von Eyben
> > Nordija A/S
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]