Search This Blog

Sunday, 16 September 2012

Practical 31) Write a JSP page which uses tags availabe from the standard tag library JSTL.


Filename-jstlexam1.jsp

<html>
<title>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:out value="<c:out>example"/>
</title>
<body>
         
          <c:out value="Example"> </c:out>
          <c:out value="abc"/>
          <%
                   for(int i=0;i<10;i++)
                   {
                             out.println(i+"<br>");
                   }
          %>
         
          <hr color="green"/>
          <c:forEach var="i" begin="0" end="20">
          ${i}
          </c:forEach>
         
</body>
</html>

No comments:

Post a Comment