日期:2014-05-18  浏览次数:20708 次

jsp页面在eclipse中显示Unhandled exception type Throwable错误
<html>
<head><title>Baby Game - Your Guesses</title></head>
<body bgcolor="#FFFFFF">
<%@ page errorPage="errorPageSW.jsp" %>

<jsp:useBean id="SWworker" class="com.wrox.projsp.ch07.BabyGameWorkerSW"
 scope="request" />
<jsp:setProperty name="SWworker" property="*" />

<% 

 SWworker.validationGuard();
   
 %>

<br> 
<jsp:getProperty name="SWworker" property="guesser" />, here are your
previously stored choices:<br>

<table border cols=4 width="75%" >
  <caption></caption>
  <tr>
  <td><jsp:getProperty name="SWworker" property="gender" /></td>
  <td><jsp:getProperty name="SWworker" property="pounds" /> lbs
  <jsp:getProperty name="SWworker" property="ounces" /> oz</td>
  <td><jsp:getProperty name="SWworker" property="month" />
  <jsp:getProperty name="SWworker" property="day" /></td>
  <td><jsp:getProperty name="SWworker" property="length" /> inches</td>
  </tr>
</table>

<br>

</body>
</html>
在eclipse中红色部分总显示Unhandled exception type Throwable错误,不知是什么原因及怎样解决?请大家指教.

------解决方案--------------------
方法里面执行的时候有异常!看一下控制台或者日志输出!
------解决方案--------------------
Java教程资源网