Search

JSTL Example

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"

pageEncoding="ISO-8859-1"%>


 

<%@ taglib prefix="c" uri="/x" %>


 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Insert title here</title>

</head>

<body>


 

    <c:out value="From JSTL Core Tag"></c:out>

    <br/>

    <c:catch> What is here?? </c:catch>

    <c:set var="counter" value="1"></c:set>

    <c:forEach begin="1" end="5" step="1">

        <c:out value="${counter}"> </c:out>

        <c:set var="counter" value="${counter}}"> </c:set>

    </c:forEach>

</body>

</html>

No comments:

Post a Comment