Package de.chkal.mvctoolbox.jsp.tag
Class CsrfTag
- java.lang.Object
-
- jakarta.servlet.jsp.tagext.SimpleTagSupport
-
- de.chkal.mvctoolbox.jsp.BaseTag
-
- de.chkal.mvctoolbox.jsp.DynamicBaseTag
-
- de.chkal.mvctoolbox.jsp.tag.CsrfTag
-
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.DynamicAttributes,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.SimpleTag
public class CsrfTag extends DynamicBaseTag
Tag for adding the CSRF token as hidden form field into a form. The resulting HTML is<input type="hidden" name="[value of ${mvc.csrf.name}]" value="[value of ${mvc.csrf.token}]/>". To change the name of the parameter please check the documentation ofCsrf.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCsrfTag.Delegate
-
Constructor Summary
Constructors Constructor Description CsrfTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoTag()-
Methods inherited from class de.chkal.mvctoolbox.jsp.DynamicBaseTag
getClassAttribute, getDynamicAttribute, setDynamicAttribute, writeDynamicAttributes, writeDynamicAttributes, writeDynamicAttributes
-
-
-
-
Method Detail
-
doTag
public void doTag() throws IOException- Specified by:
doTagin interfacejakarta.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjakarta.servlet.jsp.tagext.SimpleTagSupport- Throws:
IOException
-
-