tumblr counter

Month 01

fn:indexOf() JSTL Function

fn:indexOf() JSTL Function

fn:indexOf() JSTL Function Example explains about How To Use fn:indexOf() JSTL Function inside JSP.

Consider an example string where you need to find the first occurence of a specified substring.

fn:indexOf() returns the index within a string of the first occurrence of a specified substring.

int indexOf(java.lang.String, java.lang.String)
you can see the below example, which is demonstrating fn:indexOf() JSTL Function 

JSTL If Example

JSTL If Example

JSTL If Example explains about How to use JSTL If tag in JSP for testing the conditions.

Consider an example where you need to check whether the given conditions is correct or not

JSTL If is using for evaluating a condition, which tests if the available condition is true.

It optionally exposes a Boolean scripting variable representing the outcome of this condition. Using JSTL tag ('c:if'), you can test with conditions whether it is correct or not

you can see the below example demonstrating JSTL If function which is evaluating for a condition

Java Version History

Java Version History

Java Version History article describes about the history of the different java versions released.

From it's inception, java language is undergone several changes.

Java's first version (JDK 1.0) was released on the year 1996, January 23 and first version's codename was oak. This release consists with 8 packages and 212 classes

From version 1.4, Java language development is undergone according to the rules of Java Community Process (JCP), and they uses Java Specification Requests (JSR) to propose and specify improvements and changes to the Java Language.

JCP helped the development process of java language to become a community driven to a greater extend

fn:escapeXml() JSTL Function

fn:escapeXml() JSTL Function

fn:escapeXml() JSTL Function Example explains about Escaping Special Characters In JSTL.

Consider an example where you need to escape XML markup and display exactly what we used.

fn:escapeXml() JSTL function will escape all the characters that will be interpreted as XML markup.

java.lang.String escapeXml(java.lang.String)

you can see the below example demonstrating fn:escapeXml() JSTL function