关于
空指针异常。始终不知道哪里出错。求解
中间很多代码功能重复。因为字符限制,就没粘贴
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import=" java.util.ArrayList"%>
<%@ page import="crm.domain.Dutyplan" %>
<%@ page import="crm.Utils.*" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>值班安排</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="mtitle">
<div class="mtitle-row"> </div>
<span class="menu_selected">实验室值班安排</span>
</div>
<br>
<div class="border">
<%
//获取所有的实验室值班记录
List<Dutyplan> list = (List<Dutyplan>)request.getAttribute("list");
%>
<s:form name="form2" method="post" action="sys/dutyPlan_list.do" namespace="/sys">
<s:if test="#request.list!=null">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabForm">
<!-- title -->
<tr>
<td width="9%" class="listViewThS1"></td>
<td width="13%" class="listViewThS1">星期一</td>
<td width="13%" class="listViewThS1">星期二</td>
<td width="13%" class="listViewThS1">星期三</td>
<td width="13%" class="listViewThS1">星期四</td>
<td width="13%" class="listViewThS1">星期五</td>
<td width="13%" class="listViewThS1">星期六</td>
<td width="13%" class="listViewThS1">星期日</td>
</tr>
<tr>
<td>上午</td>
<td> <%
for(int i=0;i<list.size();i++)
{ Dutyplan d=(Dutyplan)list.get(i);
&nbs