hi every body! i m doing my online project in jsp..i want to refer some other online exams..so i need source code for online exam application in jsp...any body is there for me to help?
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/<insert additional diety names here>'s sake, Do Your Own Homework, or at least make an attempt at it.
if (document.getElementById)
{
theTime.innerHTML = time;
}
SD=window.setTimeout("countDown();", 1000);
if (hr=='00' && min == '00' && sec == '00')
{ sec = "00"; window.clearTimeout(SD);
alert("The time is Expiered");
var inputs=0;
var cou=0;
var aa;
var examdate1 = document.online.examdate1.value;
for(var x=0;x<10;x++)
{
var name= new Array(10)
name[0]="TRAP";
name[1]="Dennisriche";
name[2]="ThomasJohn";
name[3]="MarkHoneywell";
name[4]="Active server pages";
name[5]="Shozo Kawasaki";
name[6]="Neither Process Nor Completes Its Work";
name[7]=" Western India Vegetable Products Limited";
name[8]="Java server pages";
name[9]="Object oriented";
//alert("array:"+name[x]);
inputs = document.getElementsByTagName('input')
for(var i=0; i < inputs.length; i++)
{
if(inputs[i].checked==true)
{
aa=inputs[i].value;
//alert("The selected value is"+aa);
if(aa==name[x])
{
cou++;
}
}
}
}
alert("count:"+cou);
document.location.href="techexam.jsp?cou="+cou+"&examdate1="+examdate1+" ";
}
}
window.onload = countDown;
</script>
<script text="javascript">
function getValues()
{
//<%!int j=1;%>
var inputs=0;
var cou=0;
var aa;
var examdate1 = document.online.examdate1.value;
for(var x=0;x<10;x++)
{
var name= new Array(10)
name[0]="TRAP";
name[1]="Dennisriche";
name[2]="ThomasJohn";
name[3]="MarkHoneywell";
name[4]="Active server pages";
name[5]="Shozo Kawasaki";
name[6]="Neither Process Nor Completes Its Work";
name[7]=" Western India Vegetable Products Limited";
name[8]="Java server pages";
name[9]="Object oriented";
//alert("array:"+name[x]);
inputs = document.getElementsByTagName('input')
for(var i=0; i < inputs.length; i++)
{
if(inputs[i].checked==true)
{
aa=inputs[i].value;
}
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+"<br>");
}
}
%>
</SPAN></SPAN></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=middle>
<INPUT type=button value=submit onClick="getValues()">
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</FORM>
</BODY>
</HTML>
check this and leave ur feedback...
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.