Package org.openxava.web.taglib
Class NonceTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.openxava.web.taglib.NonceTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class NonceTag extends javax.servlet.jsp.tagext.TagSupport
Tag to generate a nonce number for inline JavaScript.You can use in your inline JavaScript code in this way:
<script type="text/javascript" <xava:nonce/>> var button = document.getElementById('welcome_go_signin'); button.onclick = function () { window.location='m/SignIn'; } </script>
Keep in mind that inline JavaScript does not work in any way in editor code or custom views.- Since:
- 7.1
- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NonceTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doStartTag()
-