public class FilterEL extends Object
To use these functions in EL, use mvn package and then drop
coverity-escapers-X.X.jar
into WEB-INF/lib
. Then you can use the
following incantation to incorporate the tag library into EL to invoke these
functions:
<%@ taglib uri="http://coverity.com/security" prefix="cov" %> <!-- Example of usage within a JSP --> <script> var userNum = ${cov:asNumber(param.index)}; </script>
Constructor and Description |
---|
FilterEL() |
Modifier and Type | Method and Description |
---|---|
static String |
asCssColor(String input) |
static String |
asCssColorDefault(String input,
String defaultColor) |
static String |
asFlexibleURL(String input) |
static String |
asNumber(String input) |
static String |
asNumberDefault(String input,
String defaultNumber) |
static String |
asURL(String input) |
Copyright © 2016. All Rights Reserved.