<%@ page contentType="text/html;charset=gb2312" language="java" import=java.util.*%>
<html>
<head>
<title>获得当前时间及连接</title>
</head>
<body>
<center>
<b>不错</b>
<%
Date d=new Date();
%>
<%=d%>
<%
int j=0;
int num=d.getHours();
String str="你好";
for(int i=1;i<=6;i++){
j=abs(num-i);
%>
<font size="<%=j%>">
<a href="www.baidu.com">
<%
str=str+"好好好";
out.println(str);
%>
</a>
</font>
<% } %>
</center>
</body>
</html>
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: /22.jsp(1,73) quote symbol expected
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:204)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:154)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:166)
org.apache.jasper.compiler.ParserController.getPageEncodingForJspSyntax(ParserController.java:490)
org.apache.jasper.compiler.ParserController.determineSyntaxAndEncoding(ParserController.java:431)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:207)
org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:165)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.不知道错哪了!