com.ora.jsp.tags
Class AddCookieTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.SimpleTagSupport
      extended bycom.ora.jsp.tags.AddCookieTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class AddCookieTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

This class is a custom action for adding a cookie header to the response.

Version:
3.0
Author:
Hans Bergsten, Gefion software

Field Summary
private  java.lang.String maxAgeString
           
private  java.lang.String name
           
private  java.lang.String value
           
 
Fields inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
 
Constructor Summary
AddCookieTag()
           
 
Method Summary
 void doTag()
          Creates a cookie and adds it to the response
 void setMaxAge(java.lang.String maxAgeString)
          Sets the cookie maxAge attribute.
 void setName(java.lang.String name)
          Sets the cookie name attribute.
 void setValue(java.lang.String value)
          Sets the cookie value attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

value

private java.lang.String value

maxAgeString

private java.lang.String maxAgeString
Constructor Detail

AddCookieTag

public AddCookieTag()
Method Detail

setName

public void setName(java.lang.String name)
Sets the cookie name attribute.

Parameters:
name - the name of the cookie

setValue

public void setValue(java.lang.String value)
Sets the cookie value attribute.

Parameters:
value - the value of the cookie

setMaxAge

public void setMaxAge(java.lang.String maxAgeString)
Sets the cookie maxAge attribute.

Parameters:
maxAgeString - the max age (in seconds) of the cookie

doTag

public void doTag()
           throws javax.servlet.jsp.JspException
Creates a cookie and adds it to the response

Throws:
javax.servlet.jsp.JspException