Archive for category JSP

How to access request header attributes using JSTL

To access request header using jstl you will have to include the funcations taglib as below (assuming jstl jars are already in the project classpath) The syntax is as below So in your JSP code you can do something like this The jstl code inside test=”…” checks if your ‘user-agent’ is Internet Explorer and shows […]

, , ,

Leave a comment

How to call functions in JSP via JSTL

In your jsp page your need to import a jstl taglib as below Table below lists all the functions available under fn: prefix Sr.No Return Type Function Contract Description 1 boolean contains(java.lang.String, java.lang.String) Tests if input string contians the specified substring 2 boolean containsIgnoreCase( java.lang.String, java.lang.String) Tests if an input string contains the specified substring […]

, , , , ,

Leave a comment