com.ora.jsp.tags
Class SetHeaderTag

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

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

This class is a custom action for setting response header values.

Version:
2.0
Author:
Hans Bergsten, Gefion software

Field Summary
private  java.lang.String name
           
private  java.lang.String value
           
 
Fields inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
 
Constructor Summary
SetHeaderTag()
           
 
Method Summary
 void doTag()
          Sets the header specified by the name property to the value specified by the value property.
 void setName(java.lang.String name)
          Sets the name attribute.
 void setValue(java.lang.String value)
          Sets the value attribute from a String.
 
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
Constructor Detail

SetHeaderTag

public SetHeaderTag()
Method Detail

setName

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

Parameters:
name - the parameter name

setValue

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

Parameters:
value - the parameter String value

doTag

public void doTag()
           throws javax.servlet.jsp.JspException
Sets the header specified by the name property to the value specified by the value property.

Throws:
javax.servlet.jsp.JspException