I want to output some HTML code based on some condition in a JSP file.
if (condition 1) {
Some HTML code specific for condition 1
}
else if (condition 2) {
Some HTML code specific for condition 2
}
How can I do that? Should I use …
How can I validate if a String is null or empty using the c tags of JSTL?
I have a variable of name var1 and I can display it, but I want to add a comparator to validate it.
<…
I don't know what I've done incorrectly, but I can't include JSTL. I have jstl-1.2.jar, but unfortunately I get exception:
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.…