Date的问题
高手看看一下下面这两个程序..我是想把date.jsp包含到ye.jsp中.好象date.jsp中问题,不知道出错在哪?大家看看一下...
ye.jsp
<%@ page contentType= "text/html; charset=GB2312 "
language= "java "
import= "java.util.*, java.text.*; "
errorPage= "../errorPage.jsp "%>
<html>
<head>
<title> include指令测试 </title>
</head>
<body>
<jsp:include page= "date.jsp " flush= "true "/>
</body>
</html>
date.jsp
<%@ page contentType= "text/html; charset=GB2312 "
language= "java "
import= "java.util.*, java.text.* "%>
<%
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd ");
%>
<tr>
<td height= "14 " align=center> * 当前日期: </td>
<td > <%=sdf.format(date)%> </td>
</tr>
------解决方案--------------------没有问题啊!
------解决方案--------------------没有问题啊