错误怎么改啊? <%@ page language="java" contentType="text/html;charset=gb2312" import = "java.sql.*,java.util.*"%> 
<html> 
<head> 
<title>totallogin1</title> 
<script language="JavaScript" type="text/JavaScript"> 
<!-- 
function MM_reloadPage(init) { //reloads the window if Nav4 resized 
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { 
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} 
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); 

MM_reloadPage(true); function MM_findObj(n, d) { //v4.01! 
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 
if(!x && d.getElementById) x=d.getElementById(n); return x; 
} function MM_showHideLayers() { //v6.0 
var i,p,v,obj,args=MM_showHideLayers.arguments; 
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; 
if (obj.style) { obj=obj.style; v=(v==&acute;show&acute;)?&acute;visible&acute;:(v==&acute;hide&acute;)?&acute;hidden&acute;:v; } 
obj.visibility=v; } 

//--> 
</script> 
</head> 
<form name="S_form" method="post" > 
<jsp:useBean id="db" scope="page" class="opendb.opendb"/> 
<% 
String getAusername=new String(request.getParameter("username").getBytes("ISO8859_1")); 
String getApassword=new String(request.getParameter("password").getBytes("ISO8859_1")); 
System.out.println(getAusername); 
System.out.println(getApassword); 
String sql="select EMP_CODE,EMP_WEB from wglPERSON where EMP_USERNAME=&acute;"+getAusername+"&acute;and EMP_PASSWORD=&acute;"+getApassword+"&acute;"; 
System.out.println("sql="+sql); 
ResultSet rs=db.executeQuery(sql); 
System.out.println("aa2");
if(rs.next()) 

System.out.println("aa3");
String personID=rs.getString("EMP_CODE"); 
int web=rs.getInt("EMP_WEB"); 
rs.close(); 
session.setAttribute("personID",personID); 
if(web==1) 

%> 
<body background="/DSN/b.files/bj.gif"> 
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" > 
<TBODY> 
<TR class=top> 
<TD width=296><IMG align=left 
alt=SoftshapeArt border=0 height=58 hspace=0 src="b.files/top1.gif" 
width=80><IMG align=left border=0 height=58 hspace=0 
src="/DSN/b.files/top2.gif" width=216></TD> 
<TD>  </TD> 
<TD width=517>  </TD> 
</TR></TBODY></TABLE> 
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> 
<TBODY> 
<TR > 
<td width="16%"> <IMG align=left border=0 height=22 hspace=0 src="/DSN/b.files/nav1.gif" 
width=165></td> 
<TD background="/DSN/b.files/TdBg.gif" width="84%" valign="bottom">  <font color="#00FF00"size="2"><a href="personAdd.jsp" target="_parent">人员添加</a></font>       
<font color="#00FF00" size="2"><a href="personSelect.jsp" target="_parent">人员查询</a></font>      
<font color="#00FF00" size="2" ><a href="userBack.jsp">进入普通用户界面</a></font>      
<font color="#00FF00" size="2" ><a href="totallogin.jsp">重新登录</a></font></a></font> </TD> 
</TR></TBODY></TABLE> 
<TABLE border=0 cellPadding=0 cellSpacing=0 class=splash width="100%"> 
<TBODY> 
<TR> 
<TD class=splash width="8%" align="center" valign="bottom"><IMG align=left border=0 height=72 hspace=0 
src="/DSN/b.files/spl_1.gif" width=76></TD> 
<TD width="92%" align="center"><font size="5">欢迎进入管理员界面</font> </TD> 
</TR> 
</TBODY> 
</TABLE> 
</body> 
<%} 
if(web==0) 
{%> 
<body background="/DSN/b.files/bj.gif"> 
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" > 
<TBODY> 
<TR class=top> 
<TD width=296><IMG align=left 
alt=SoftshapeArt border=0 height=58 hspace=0 src="/DSN/b.files/top1.gif" 
width=80><IMG align=left border=0 height=58 hspace=0 
src="/DSN/b.files/top2.gif" width=216></TD> 
<TD>  </TD> 
<TD width=517>  </TD> 
</TR></TBODY></TABLE> 
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> 
<TBODY> 
<TR > 
<td width="16%"> <IMG align=left border=0 height=22 hspace=0 src="/DSN/b.files/nav1.gif" 
width=165></td> 
<TD background="/DSN/b.files/TdBg.gif" width="84%" valign="bottom">  <font color="#00FF00"size="2"><a href="rest.jsp" target="_parent">请假条填写</a></font>       
<font color="#00FF00" size="2"><a href="restUser.jsp" target="_parent">个人请假查询</a></font>      
<font color="#00FF00" size="2"><a href="totallogin.jsp">重新登录</a></font> </TD> 
</TR></TBODY></TABLE> 
<TABLE border=0 cellPadding=0 cellSpacing=0 class=splash width="100%"> 
<TBODY> 
<TR> 
<TD class=splash width="8%" align="center" valign="bottom"><IMG align=left border=0 height=72 hspace=0 
src="/DSN/b.files/spl_1.gif" width=76></TD> 
<TD width="92%" align="center"><font size="5">欢迎进入普通用户界面</font> </TD> 
</TR> 
</TBODY> 
</TABLE> 
</body> 
<%}if(web==2) 
{%> 
<body background="/DSN/b.files/bj.gif"> 
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" > 
<TBODY> 
<TR class=top> 
<TD width=296><IMG align=left 
alt=SoftshapeArt border=0 height=58 hspace=0 src="/DSN/b.files/top1.gif" 
width=80><IMG align=left border=0 height=58 hspace=0 
src="/DSN/b.files/top2.gif" width=216></TD> 
<TD>  </TD> 
<TD width=517>  </TD> 
</TR></TBODY></TABLE> 
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> 
<TBODY> 
<TR > 
<td width="16%"> <IMG align=left border=0 height=22 hspace=0 src="/DSN/b.files/nav1.gif" 
。。这是登陆界面 运行时有错误 
type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException 
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) 
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) -------------------------------------------------------------------------------- 
是空指针错误么??? 
我找不到错误啊 
是代码的问题么? 可能是哪里有问题呢??? 
谢谢大虾们啦!!!!