jodd.servlet.tag
Class CsrfTokenTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by jodd.servlet.tag.CsrfTokenTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

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

Renders the CSRF (Cross-site request forgery) token in the form.

http://en.wikipedia.org/wiki/Cross-site_request_forgery


Field Summary
protected  java.lang.String name
           
 
Constructor Summary
CsrfTokenTag()
           
 
Method Summary
 void doTag()
           
 void setName(java.lang.String name)
          Specifies token name.
 
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

protected java.lang.String name
Constructor Detail

CsrfTokenTag

public CsrfTokenTag()
Method Detail

setName

public void setName(java.lang.String name)
Specifies token name.


doTag

public void doTag()
           throws java.io.IOException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
java.io.IOException


Copyright © 2003-2012 Jodd Team