ithelp
Nearly a Posting Maven
2,230 posts since May 2006
Reputation Points: 769
Solved Threads: 128
So write some. If you have problems, and a specific question, then come back and we will help, but for God's/Allah's/Buddha's/'s sake, Do Your Own Homework, or at least make an attempt at it.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
<%@ page contentType="text/html" %>
<%@ page session="true" %>
<%@ page language="java" %>
<%@ page autoFlush="true" import="com.hurix.mhlncms.*, java.util.*"%>
<%@ page import="java.util.*,java.io.*,java.sql.*"%>
Management Information System
<%
mis.setHurixDbconnection(hdbc);
String examdate1 = request.getParameter("examdate") != null ? request.getParameter("examdate") : null;
String answer = "";
%>
Optitude Test
Exam Timing::
<%
Connection con = null;
String strPrjQuery=null;
ResultSet rst=null;
Statement stmt=null;
Collection EItemCheck=new Vector();
int n=0;
int i=0;
String q;
try
{
con=hdbc.getConnectionFromPool();
stmt=con.createStatement();
rst=stmt.executeQuery("select * from PMS_ONLINEWRITTEN ORDER BY dbms_random.value");
while(rst.next())
{
%>
">
">
">
">
">
">
">
">
">
">
<%
}
}
catch(SQLException e)
{
throw new SQLException("Error in Retrieving all the Projects ",null,e.getErrorCode());
}
finally
{
hdbc.putConnectionToPool(con);
}
Collection optians = mis.fetchoptianswer();
int n1=0;
int x;
String answer1="";
if (optians != null)
{
Iterator iter1 = optians.iterator();
Vector vect = new Vector();
while(iter1.hasNext())
{
vect = (Vector)iter1.next();
answer1= vect.elementAt(0).toString();
out.println("answer::"+answer1+"
");
}
}
%>
hidash_in
Junior Poster in Training
86 posts since Oct 2007
Reputation Points: 1
Solved Threads: 0