hi, anybody can help me to resolve a question,find out the bugs in the codes?

<%@ page session="true" %>
<%@ page import="java.util.*"%>
<%@ page import="lasaoa.data.*"%>
<%@ page import="lasaoa.util.*"%>
<%@ page import="com.jdo.*"%>
<%@ page import="greatech.dbcontrol.personCheckDBMan"%>
<%@ page import="com.exception.*"%>
<%@ page contentType="text/plain; charset=GB2312" %>

<jsp:useBean id="user" class="User" scope="session"/>
<jsp:useBean id="org" class="Org" scope="session"/>
<%request.setAttribute("__basedir", "../");%>
<%@ include file="../security/security.jsp"%>

<jsp:include page="../template/header.jsp"/>
<jsp:include page="../template/menu.jsp"/>
<%@ include file="../template/login.jsp" %>
<jsp:include page="../template/info.jsp"/>

<%@ include file="../template/func-list.jsp" %>
<script language="JavaScript" type="text/JavaScript">

function dosend(objid)
{
for(i=0;i<document.form_Deal.elements.length;i++)
if (document.form_Deal.elements[i].id=="objid"+objid)
document.form_Deal.elements[i].checked = true;
document.form_Deal.submit();
}

</script>

<style type="text/css">
<!--
.style1 {color: #0099FF}
-->
</style>

<%!
private static final int PERPAGE = 10;

//greatech.dbcontrol.FileMan fm=new greatech.dbcontrol.FileMan("d:\\servletlog.txt");
greatech.dbcontrol.Dict hrdict = new greatech.dbcontrol.Dict("humanresource","Id","Name");
DateFormater df = new DateFormater();
personCheckDBMan pcdb=new personCheckDBMan();

private static final String[] titles = {
"姓名", "考核日期", "考核期间段", "自我考核", "组织考核", "评分"
};

private String[] contents = new String[6];

private static final int[] widthes = {80, 100, 150, 240, 240, 30};

void FillContent(personCheck doc){
String temp="";
contents[0] = "<input type='radio' id='objid"+doc.getId().toString()+"' name='objid' value='"+doc.getId().toString()+"'>&nbsp;"+
"<span style=\" cursor:hand;font-size: 12px;font-family: \"宋体\"\">"+
"<a class='style1' onclick='dosend("+doc.getId().toString()+")'>"+hrdict.Id2Name(doc.getHrid().toString())+"</a>"+
"</span>";//"姓名",
contents[1] = doc.checkdate_str;
contents[2] = doc.perioddate1_str+" -> "+doc.perioddate2_str;

temp=doc.getSelfcheck();
if(temp.length()>30) temp=temp.substring(1,20)+"...";
contents[3] = temp;

temp=doc.getOrgcheck();
if(temp.length()>30) temp=temp.substring(1,20)+"...";
contents[4] = temp;

contents[5] = doc.getMark().toString();
};
%>

<%
//------------------------------------------------------------------------
// 根据RecordCount计算pagecount
// 从参数表得到 pageid
// 从数据库得到记录数据集合Logs
//------------------------------------------------------------------------
String CondStr=null;
try{ CondStr = request.getParameter("hrid"); }catch(Exception e){}
//if(CondStr==null) return;
ConStr = "CondStr=hrid='"+hrid+"'";
out.println(ConStr);
int recordcount = pcdb.GetCount(CondStr);

int pageid;
try{pageid=Integer.parseInt(request.getParameter("page"));}catch(Exception e){pageid=0;}
//fm.LogOut("recordcount="+recordcount);
int pagecount = 0;
Vector Logs;
try{
pagecount = recordcount/PERPAGE;
if (recordcount>(pagecount*PERPAGE)) pagecount++;
if(pageid >= pagecount) pageid = pagecount - 1;

int startindex = pageid * PERPAGE + 1;
int endindex = (pageid + 1) * PERPAGE;
Logs = pcdb.GetObjects(CondStr,"checkdate desc", startindex, endindex );

}catch(Exception e){throw new OAException(e);}
%>
<form name="form_Deal" style="margin:0px" method="post" action="../office/personcheck_deal.jsp">
<%@ include file="../office/menulet.jsp" %>
<%

//------------------------------------------------------------------------
// 显示记录集合
//------------------------------------------------------------------------
printListTitle(out, titles, widthes, 1);
if( (Logs==null) || (Logs.size()==0) ){
out.println("<tr><td colspan='8' class='pt9' style='background-color: #FFFFFF;'><i>目前还没有记录</i></td></tr>");
}else{
for(int i = 0; i < Logs.size(); i++){
FillContent((personCheck)Logs.elementAt(i));
printListContent(out, contents);
}
}
out.println("</table><font color=#CC0066 size=4>共有记录 "+recordcount+" 条</font>");
printPageList(out, "personcheck_self_view.jsp?page=", pagecount, pageid);
//---------- finish
%>
</form>

<jsp:include page="../template/footer.html"/>

thank you!