在eclipse 运行jsp文件时 为什么总出现500错误 求大神解答!!!
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><%@pagelanguage="java"import...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page language="java" import="java.util.*"paegEncoding="gb2312" %>
<%@page import="dao.ScoreDao" %>
<%@page import="vo.Score" %>
<html>
<head>
<title>My JSP 'scoreForm.jsp' starting page</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>
<%
String courseno="001";
%>
<form action="scoreUpdate.jsp"method="post">
<input name="courseno" type="hindden" value="<%=courseno%>">
<input type="submit" value="提交成绩">
<table>
<tr bgcolor="yellow">
<td>学号</td>
<td>姓名</td>
<td>考试类型</td>
<td>分数</td>
<%
ScoreDao sdao=new ScoreDao();
ArrayList scores= sdao.getAllScoresByCourseno(courseno);
for(int i=0;i<scores.size();i++){
Score socre= (Score)scores.get(i);
%>
<tr bgcolor="pink">
<td><%=socre.getStuno() %></td>
<td><%=socre.getStuname() %></td>
<td><%=socre.getType() %></td>
<td>
<% if(socre.getScorenumber()==null){ %>
<input name="score" type="text" size="4">
<input name="type" type="hidden" value="<%=socre.getType() %>">
<input name="stuno" type"hidden" value="<%=socre.getStuno() %>">
<%}else{
out.print(socre.getScorenumber());
}%>
</td>
</tr>
<%
}
%>
</table>
</form>
</body>
</html> 展开
<%@page language="java" import="java.util.*"paegEncoding="gb2312" %>
<%@page import="dao.ScoreDao" %>
<%@page import="vo.Score" %>
<html>
<head>
<title>My JSP 'scoreForm.jsp' starting page</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>
<%
String courseno="001";
%>
<form action="scoreUpdate.jsp"method="post">
<input name="courseno" type="hindden" value="<%=courseno%>">
<input type="submit" value="提交成绩">
<table>
<tr bgcolor="yellow">
<td>学号</td>
<td>姓名</td>
<td>考试类型</td>
<td>分数</td>
<%
ScoreDao sdao=new ScoreDao();
ArrayList scores= sdao.getAllScoresByCourseno(courseno);
for(int i=0;i<scores.size();i++){
Score socre= (Score)scores.get(i);
%>
<tr bgcolor="pink">
<td><%=socre.getStuno() %></td>
<td><%=socre.getStuname() %></td>
<td><%=socre.getType() %></td>
<td>
<% if(socre.getScorenumber()==null){ %>
<input name="score" type="text" size="4">
<input name="type" type="hidden" value="<%=socre.getType() %>">
<input name="stuno" type"hidden" value="<%=socre.getStuno() %>">
<%}else{
out.print(socre.getScorenumber());
}%>
</td>
</tr>
<%
}
%>
</table>
</form>
</body>
</html> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |