Topic: 这个jsp程序有什么问题? |
Print this page |
1.这个jsp程序有什么问题? | Copy to clipboard |
Posted by: xidianliuy Posted on: 2004-06-19 21:07 一个很简单的jsp怎么有错误?使用 jdk1.4.2 tomcat5.0 <%@page contentType="text/html;charset=GB2312" %> <html> <body > <font size=1> <p>现在的时间是</p> <% Date d = new Date(); %> <p> 现在的时间是:</p> <br> <%= d %> </font> </body> </html> 出现错误如下: Generated servlet error: [javac] Compiling 1 source file D:\tomcat\jakarta-tomcat-5.0.25\work\Catalina\localhost\_\org\apache\jsp\date_jsp.java:48: cannot resolve symbol symbol : class Date location: class org.apache.jsp.date_jsp Date d = new Date(); |
2.Re:这个jsp程序有什么问题? [Re: xidianliuy] | Copy to clipboard |
Posted by: why Posted on: 2004-06-19 22:39 The error tells the problem : cannot resolve symbol java.util.Date d = new java.util.Date(); or <%@ page import="java.util.Date" %> |
3.Re:这个jsp程序有什么问题? [Re: xidianliuy] | Copy to clipboard |
Posted by: chengbd Posted on: 2004-06-21 11:42 正如上所说 { 1. This is kind of 灌水 2. consider "Disable Smileys" when posting code 3. boldface headings and subheadings, if possible 4. assuming posts without 出处 are your own, a credit is well deserved. Thanks -- why } |
4.Re:这个jsp程序有什么问题? [Re: xidianliuy] | Copy to clipboard |
Posted by: xidianliuy Posted on: 2004-06-25 09:43 哎,我太 sb了,竟然忘了这个" import" !! |
5.Re:这个jsp程序有什么问题? [Re: xidianliuy] | Copy to clipboard |
Posted by: ouxingning Posted on: 2004-07-01 00:53 you should find errors from compiling. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |