You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Morrison, John" <Jo...@uk.experian.com> on 2001/06/14 09:29:05 UTC

RE: cvs commit: xml-cocoon2/src/org/apache/cocoon/acting HttpHead erAction.java

Donald - I *think* this is something I've been waiting for... could you be
kind enough to send an example of it's use too?

Thanks,

J.

> -----Original Message-----
> From: balld@apache.org [mailto:balld@apache.org]
> Sent: 14 June 2001 5:31 am
> To: xml-cocoon2-cvs@apache.org
> Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/acting
> HttpHeaderAction.java

<code-snipped/>


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: cvs commit: xml-cocoon2/src/org/apache/cocoon/acting HttpHead erAction.java

Posted by John Morrison <jo...@ntlworld.com>.
Many thanks.

> -----Original Message-----
> From: Donald Ball [mailto:balld@webslingerZ.com]
> Sent: Thursday, 14 June 2001 8:37 pm
> To: 'cocoon-dev@xml.apache.org'
> Subject: RE: cvs commit: xml-cocoon2/src/org/apache/cocoon/acting
> HttpHead erAction.java
> 
> 
> On Thu, 14 Jun 2001, Morrison, John wrote:
> 
> > Donald - I *think* this is something I've been waiting for... 
> could you be
> > kind enough to send an example of it's use too?
> 
> sure:
> 
>   <map:match pattern="header">
>     <map:generate src="content/header.xml" type="serverpages"/>
>     <map:transform src="style/header2svg.xsl"/>
>     <map:act type="http-header-action">
>       <map:parameter name="Pragma" value="no-cache"/>
>       <map:parameter name="Cache-Control" value="no-cache"/>
>     </map:act>
>     <map:serialize type="svg2jpeg"/>
>   </map:match>
> 
> i'm thinking i'll add some variable substitution for the value attribute,
> so you can set headers which depend on things like the current time:
> 
> <map:parameter name="Expires" value="$now"/>
> 
> i dunno. suggestions are welcome.
> 
> - donald
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: cvs commit: xml-cocoon2/src/org/apache/cocoon/acting HttpHead erAction.java

Posted by Donald Ball <ba...@webslingerZ.com>.
On Thu, 14 Jun 2001, Morrison, John wrote:

> Donald - I *think* this is something I've been waiting for... could you be
> kind enough to send an example of it's use too?

sure:

  <map:match pattern="header">
    <map:generate src="content/header.xml" type="serverpages"/>
    <map:transform src="style/header2svg.xsl"/>
    <map:act type="http-header-action">
      <map:parameter name="Pragma" value="no-cache"/>
      <map:parameter name="Cache-Control" value="no-cache"/>
    </map:act>
    <map:serialize type="svg2jpeg"/>
  </map:match>

i'm thinking i'll add some variable substitution for the value attribute,
so you can set headers which depend on things like the current time:

<map:parameter name="Expires" value="$now"/>

i dunno. suggestions are welcome.

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org