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

求求教高手!!!!!!

下面是我写的一个简单登录界面:用户名和密码都保存在文件中。。。。总是出现异常说是37行有错,但是就是没有找到。。符号都是对的。。。
异常:
type   Exception   report

message  

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

exception  

org.apache.jasper.JasperException:   Exception   in   JSP:   /Login.jsp:37

34:                                           out.print(code+ " <BR> ");
35:                                           out.print(usercode+ " <BR> ");
36:                                          
37:                                           if(username.equals(name)&&usercode.equals(code))
38:                                                   out.print( "Log   In   Successly ");
39:                                           else
40:                                                   out.print( "Log   In   Failed ");

代码:
<%@page   contentType= "text/html "   import= "java.io.* "%>
<%@page   pageEncoding= "UTF-8 "%>
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN "
"http://www.w3.org/TR/html4/loose.dtd ">
<html>
        <head>
                <meta   http-equiv= "Content-Type "   content= "text/html;   charset=UTF-8 ">
                <title> 简单的用户登录界面 </title>
        </head>
        <body>
                <form   action= "Login.jsp "   method= "post ">
                        <table   border= "1 "   cellspacing= "1 "   cellpadding= "4 "   width= "80% "   align= "center ">
                                <tr   bgcolor= "pink "> <td   colspan= "2 "> <font   color= "blue "> 会员登录 </font> </td> </tr>
                                <tr> <