cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Morrison <john.morri...@experian.com>
Subject Re: Cookie Taglib?
Date Tue, 22 Aug 2000 15:37:22 GMT
Kevin:

Thanks for the reply, but I can't create one.  Here's my demo xml...

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>

<xsp:page
	language="java"
  	xmlns:cookie="http://www.apache.org/1999/XSP/Cookie"
	xmlns:response="http://www.apache.org/1999/XSP/Response"
	xmlns:xsp="http://www.apache.org/1999/XSP/Core">

    <content>
		<xsp:logic>
		Cookie cookie = <cookie:create name="test">
			<value>test value</value>
			<cookie:set-comment>
				<purpose>Keeps some
information</purpose>
		</cookie:set-comment></cookie:create>;
		<cookie:set-max-age expiry="172800"/>
		<cookie:set-domain pattern=".localdomain"/>
		<cookie:set-path path="/"/>
		<cookie:set-secure flag="1"/>
		<cookie:set-version value="1"/>
		<response:add-cookie>
			<xsp:logic>cookie</xsp:logic>
		</response:add-cookie>
	</xsp:logic>
    </content>
        
</xsp:page>

have I missed anything?

Thanks,

John.

Mime
View raw message