MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » 各位帮小弟我看看,小弟我这个jsp那儿有有关问题?

各位帮小弟我看看,小弟我这个jsp那儿有有关问题?多谢,

www.MyException.Cn  网友分享于:2013-09-12  浏览:14次
各位帮我看看,我这个jsp那儿有问题?谢谢,在线等。。。
使用的是tomcat,谢谢


代码如下:
<%
//继承Date类
java.util.Date   dt=new   java.util.Date();
hour=dt.getHot   hours();
if((hour <11)&&(hour> =5))
out.println( "早上好! ");
if((hour <13)&&(hour> =11))
out.println( "中午好! ");
if((hour <18)&&(hour> =13))
out.println( "下午好! "));
if((hour <5)||(hour> =18))
out.println( "晚上好! ");
%>


网页中报错如下:
type   Exception   report

message  

description   The   server   encountered   an   internal   error   ()   that   prevented   it   from   fulfilling   this   request.

exception  

org.apache.jasper.JasperException:   org.apache.jasper.JasperException:   Unable   to   compile   class   for   JSP

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
hour   cannot   be   resolved

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
dt.getHot   cannot   be   resolved   or   is   not   a   field

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
Syntax   error,   insert   "; "   to   complete   Statement

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
The   method   hours()   is   undefined   for   the   type   test4_jsp

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
hour   cannot   be   resolved

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
hour   cannot   be   resolved

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
hour   cannot   be   resolved

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
hour   cannot   be   resolved

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
hour   cannot   be   resolved

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
hour   cannot   be   resolved

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp
Generated   servlet   error:
Syntax   error   on   token   ") ",   delete   this   token

An   error   occurred   at   line:   1   in   the   jsp   file:   /test4.jsp

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有