<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.otts.*" %>
<%@ page import="com.otts.dao.TestProfile" %>
<%-- Variables declaration --%>
<link type="text/css" href="/TandQMgmt/css/menu.css" rel="stylesheet" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="menu.js"></script>
<link href="/TandQMgmt/css/style.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery.js" ></script>
<script src="../js/jquery-ui.js" ></script>
<script src="../js/jquery-validate.js" ></script>
<body>
<div class="contanier">
<div class="content-beginner">
<div class="logo"></div>
<div class="heading-bar">
<div class="heading-text"></div>
<div class="clear"></div>
</div>
</ul></div>
</li>
</ul></div>
</li>
<li class="last"><a href="#"><span>Help & Support </span></a></li>
</ul>
</div>
<div class="clear"></div>
<script>
$(function() {
$("input:submit").button();})
function validateregisterform(){
$("form#Formviewtest").validate();
}
</script>
<%
if(request.getAttribute("indicator")=="view"){ %>
<p align="center">
<table width="800" height="281" border="1" bgcolor="#FFFFFF">
<tr>
<td height="33" colspan="7" bgcolor="#663300"><h1 style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:16px; color:#FFF;">View Test Details</h1></td>
</tr>
<tr>
<td width="96" bgcolor="#e3d5a8"><h2 style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:13px; color:#C30; text-align:center;">TESTID</h2></td>
<td width="96" bgcolor="#e3d5a8"><h2 style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:13px; color:#C30; text-align:center;">TEST NAME</h2></td>
<td width="96" bgcolor="#e3d5a8"><h2 style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:13px; color:#C30; text-align:center;">TEACHER ID</h2></td>
<td width="96" bgcolor="#e3d5a8"><h2 style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:13px; color:#C30; text-align:center;">NO of PARTICIPANTS</h2></td>
<td width="96" bgcolor="#e3d5a8"><h2 style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:13px; color:#C30; text-align:center;">CURRENTLY ALLOCATED</h2></td>
<td width="96" bgcolor="#e3d5a8"><h2 style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:13px; color:#C30; text-align:center;">DURATION</h2></td>
<td width="96" bgcolor="#e3d5a8"><h2 style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:13px; color:#C30; text-align:center;">CREATED BY</h2></td>
</tr>
<%ArrayList userList=null;
userList=(ArrayList) request.getAttribute("totalResultSet");
for(int i=0;i<userList.size();i++)
{
TestProfile testProfile = (TestProfile) userList.get(i);
%>
<tr>
<td><%out.print(testProfile.getTestId());%></td>
<td><%out.print(testProfile.getTestName());%></td>
<td><%out.print(testProfile.getTeacherId());%></td>
<td><%out.print(testProfile.getNumberOfParticipants());%></td>
<td><%out.print(testProfile.getCurrentlyAllocated());%></td>
<td><%out.print(testProfile.getDuration());%> </td>
<td><%out.print(testProfile.getCreatedBy()); %> </td>
</tr>
<% }%>
</p>
</table>
<%}
else { %>
<form name="Formviewtest" id="Formviewtest" onsubmit="return validateregisterform()" action="../TestandQuestionManagement" method="post">
<pre>
<input type="submit" name ="Submit" value="View Test"></input>
</pre>
</div>
</div>
</div>
</form>
</body>
</html>
<%}%>
Я не уверен, что это. Если вы считаете, что этот код важен для вашего вопроса, отредактируйте его, чтобы включить его. Однако для меня не очевидно, как ваш код JSP влияет на вопрос, который вы задали. –