Example : // 表示注释内容 <%-- --%> <%-- use the 'taglib' directive to make the JSTL 1.0 core tags available; use the uri "http://java.sun.com/jsp/jstl/core" for JSTL 1.1 --%>//使用c:out标签http://www.VeVb.com/ <%@ taglib uri="http://java.sun.com/jstl/core" PRefix="c" %> <%-- use the 'jsp:useBean' standard action to create the Date object; the object is set as an attribute in page scope --%>//在jsp中使用javabean指明其(id)对象和(java.util.Date)类. <jsp:useBean id="date" class="java.util.Date" /> <html><head><title>First JSP</title></head><body><h2>Here is today's date</h2>//使用表达式输出${data} <c:out value="${date}" /> </body></html> http://blog.csdn.net/bruceleey/archive/2007/02/07/1503844.aspx