S
Steve Burrus
I need help w. the JSTL cut tag!! I am just simply trying to get the
current date printed out in a JSP page, but it won't show/display! All
that it shows in the web browser is the <h2></h2> heading and then under
that this : ${date}, instead of the date that I would like to see. Here
is the code for this file :
<%-- use the 'taglib' directive to make the JSTL 1.1 core tags
available --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%-- use the 'jsp:useBean' standard action to make the Date object
available in page scope --%>
<jsp:useBean id="date" class="java.util.Date" />
<html>
<head><title>First JSP</title></head>
<body>
<h2>Here is today's date</h2>
<cut value="${date}" />
</body>
</html>
Thanx in advance to anyone who can help me with this problem.
current date printed out in a JSP page, but it won't show/display! All
that it shows in the web browser is the <h2></h2> heading and then under
that this : ${date}, instead of the date that I would like to see. Here
is the code for this file :
<%-- use the 'taglib' directive to make the JSTL 1.1 core tags
available --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%-- use the 'jsp:useBean' standard action to make the Date object
available in page scope --%>
<jsp:useBean id="date" class="java.util.Date" />
<html>
<head><title>First JSP</title></head>
<body>
<h2>Here is today's date</h2>
<cut value="${date}" />
</body>
</html>
Thanx in advance to anyone who can help me with this problem.