January 04, 2013

JSTL : Java Standard Tag Library

Alternate Solution for JSP tags in JSTL

Jstl equivalent for ('<%=request.getParameter("id")%>') :: ${param.id} and ${param.["id"]}

Jstl equivalent for  session :: ${sessionScope.Object.variableName}

You need to add the jstl jar to your project, Before using the above codes

Download link

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

To know How to use jstl inside your web application click here


Facebook comments