matts 2003/01/26 09:25:42
Modified: demo/xsp cookie.xsp Log: Wrote a cookie demo Revision Changes Path 1.2 +33 -0 xml-axkit/demo/xsp/cookie.xsp Index: cookie.xsp =================================================================== RCS file: /home/cvs/xml-axkit/demo/xsp/cookie.xsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- cookie.xsp 14 Mar 2002 22:29:58 -0000 1.1 +++ cookie.xsp 26 Jan 2003 17:25:42 -0000 1.2 @@ -0,0 +1,33 @@ +<xsp:page + xmlns:xsp="http://apache.org/xsp/core/v1" + xmlns:cookie="http://axkit.org/NS/xsp/cookie/v1" + xmlns:param="http://axkit.org/NS/xsp/param/v1" +> +<html> + <head> + <title>Cookie Taglib Example</title> + </head> + <body> + <div> + <form method="POST"> + Cookie value: + <input type="text" name="myparam"> + <xsp:attribute name="value"><xsp:expr><param:myparam/> || <cookie:fetch name="textCookie"/></xsp:expr></xsp:attribute> + </input> + <input type="submit" value="Submit"/> + </form> + </div> + + <xsp:logic> + if (<param:myparam/>) { + <xsp:content> + Created cookie + <cookie:create name="textCookie"> + <cookie:value><param:myparam/></cookie:value> + </cookie:create> + </xsp:content> + } + </xsp:logic> + </body> +</html> +</xsp:page>