online test application in java

online test application in java

Can questions come in html file (test.html) if we link test.jsp with test.html

View Answers

August 9, 2012 at 11:50 AM

We have taken radiobuttons in our application, you can take textarea, textfield etc. Here we have created a table ans(ques,op1,op2,op3,op4,op5,ans) in the mysql database.

1)radio.jsp:

<%@page import="java.sql.*"%>
<form name="form" method="post" action="result.jsp">
<table>
<%
Class.forName("com.mysql.jdbc.Driver");
Connection conn =DriverManager.getConnection("jdbc:mysql://localhost:3306/register","root","root");
Statement st=conn.createStatement();
ResultSet rs=st.executeQuery("select * from answers");
int i=0;
while(rs.next()){
%>
<tr>
<td><%=rs.getString(1)%></td>
<td><input type="radio" name="radio<%=i%>" value="<%= rs.getString(2) %>"></td><td><%=rs.getString(2)%></td>
<td><input type="radio" name="radio<%=i%>" value="<%= rs.getString(3) %>"></td><td><%=rs.getString(3)%></td>
<td><input type="radio" name="radio<%=i%>" value="<%= rs.getString(4) %>"></td><td><%=rs.getString(4)%></td>
<td><input type="radio" name="radio<%=i%>" value="<%= rs.getString(5) %>"></td><td><%=rs.getString(5)%></td>
<td><input type="radio" name="radio<%=i%>" value="<%= rs.getString(6) %>"></td><td><%=rs.getString(6)%></td>
<td><input type="hidden" name="ans<%=i%>" value="<%= rs.getString(7) %>"></td>

</tr><%
i++;
}
%>
<tr><td><INPUT type="submit" name="submit" value="Submit"></td></tr>
</table>
</form>

2) result.jsp:

<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%
String id[]= new String[10];
for(int i=0;i<10;i++){
id[i]=request.getParameter("radio"+i);
}
String str[]= new String[10];
for(int j=0;j<10;j++){
str[j]=request.getParameter("ans"+j);
}
boolean isCorrect = Arrays.equals(id,str);
out.println("Your Answers are : " + isCorrect);
%>

For more information,please visit the following link:

http://www.roseindia.net/jsp/online-quiz-application-jsp.shtml









Related Tutorials/Questions & Answers:
online test application in java
Online Test Application Table Of Contents Introduction To Application Database Design Creating Data Access Object (DAO) Design Pattern Creating Views Writing Actions Mapping Application Admin Module User Module Download
online test application in java
online test application in java  Can questions come in html file... the following link: http://www.roseindia.net/jsp/online-quiz-application-jsp.shtml... radiobuttons in our application, you can take textarea, textfield etc. Here we have created
Advertisements
Online test
Online test   I am creating a project for online test system. There should be a timer,on pressing next button it will retrieve a next question and it will show on the same page,on completion of test it will show result
code for timer in java netbeans for online test series countdown timer
code for timer in java netbeans for online test series countdown timer  code for timer in java netbeans for online test series countdown timer
online test project on java using servlets and jsp
online test project on java using servlets and jsp  as i am doing online test project on java using jsp and servlets ,,,the problem is in the code...;Here is a jsp application. Here we have created a table test
online test project
online test project  i need online test project in java using struts...kindly help..   Have a look at the following link: http://www.roseindia.net/struts/struts/struts2.2.1/onlinetestapp
online banking application
online banking application  i want to develope online banking application by using jsp with oracle 10g database but i have problem to view the mini statement and balance enquiry...when we entered accontno and pin and select
Online Test System Project
Online Test System Project  I want a full ready-made project on online test system in jsp. i am not using servlet but only jsp.And backend database...://www.roseindia.net/jsp/online-quiz-application-jsp.shtml
online test system
online test system  Hi, I am creating a project for online test.../online-quiz-application-jsp.shtml http://www.roseindia.net/answers/viewqa/JSP... question and it will show on the same page,on completion of test it will show
Online Test System Project
Online Test System Project  I want a full ready-made project on online test system in jsp. i am not using servlet but only jsp.And backend database as mysql. my email address is help me. send a full project on online test system
Online Quiz Application in JSP
Online Quiz Application in JSP  ... are going to implement of Online quiz application using of JSP. Step 1: Create... is the code. <%@page language="java" import="java.sql.*" %>
online test software using jsp and servlet
online test software using jsp and servlet  online test software using jsp and servlet
Online Java Compiler
that allows a Java application developers to write and test their application code... level application. Nowadays, so many online Java compiler and runners...Online Java Compiler provides the Java development environment online, which
Free Java online Training
Free Java online Training  Hi, From where I can take online free Java Training classes? Thanks   Hi, Ok, We will provide online free... for registering for Free Online Java Training classes. Thanks
Online Java Tutorial
Online Java Tutorial  Hi, I am trying to find Online Java Tutorials. Give me the URL. Thanks   Hi, Learn Java at Java Tutorials section. Thanks
Failed to run Online Quiz Application in JSP - JSP-Interview Questions
Failed to run Online Quiz Application in JSP   Hi, I have been following your following link to run the online quiz application, but I failed... you kindly document the steps in more details to run your application
Online Java Training for Beginners
Online Java Training for Beginners The online java training for beginners... a little or no knowledge of Java programming can undertake Rose India's online Java training for the beginners. The Online Java Programming course
Need Help in creating online quiz application using JSP - JSP-Servlet
Need Help in creating online quiz application using JSP  Hi, i am creating online Quiz application using JSP and MySQl ,Apache 6 in Netbeans IDE. i..., JSP Page Online Quize Application
online attendance management in java.....
online attendance management in java.....  if any body have this project or project related to this please help.... i need it urgently.. plz help me out
Java Online Training
Java online training is provided for free to everyone interested in learning... in the IT department. Online training of Java given at Roseindia is one of the best in comparison to other types of training available in the market. Java online training
Ajax Chat Application,Ajax Chat Application Program,Online Ajax Chat Application
Ajax chat Application Program Ajax chat application program request to server without refreshing the web page.  In this Session you will learn the how to display massage. This program call the method 'callchat()' for the massage
online shopping - Java Beginners
online shopping  Respected Sir, Sir please help me how to handle online shooping and shopping cart by click on image by only using jsp
Using the QUnit to test jQuery application
Using the QUnit to test jQuery application       Using the QUnit to test jQuery application Using Qunit , testing of JQuery become very easy and efficient
online shopping - Java Beginners
online shopping  Respected Sir, Sir please help me how to handle online shooping and shopping cart by click on image by only using jsp?   Hi friend, For solving the problem visit to : http
Java project in online examination system
Java project in online examination system  how many and which tables are required at backend as SQL for online examination system project in jsp
Best Core Java Online Training
Best Core Java Online Training  Hi, I want to make my career in Java programming and for learning quickly searching for Java online training. Which is the best Core Java Online Training course? Thanks   Hi, Learning
Where to take online Java Training?
Where to take online Java Training?  Hi, I am new in programming and trying to learn Java for making career in Java. I want to find good Job in Java programming. Where to take online Java training course? Thanks   Hi
Java Learning online made easy
Java Learning online made easy  Hi, We are announcing Java tutorials for learning Java online at our website. These tutorial are well written... are best for learning Java online and becoming expert in few months. "Here
Core Java Online Training
Ascend as an Expert Developer with Core Java Online Training - Online... java online training for those who wish to learn, but are bounded by time, due... of application that can be made to run using Java as follows: Mobile Applications
Can we learn Java online?
Can we learn Java online?  Hi, I want to learn Java with the help of may online tutorials on Internet. Is it possible to learn Java programming from many tutorials available online on Internet. Can we learn Java online? Thanks
Can we learn Java online?
Can we learn Java online?  Hi, I want to learn Java with the help of may online tutorials on Internet. Is it possible to learn Java programming from many tutorials available online on Internet. Can we learn Java online? Thanks
Java Application
Java Application  Hi, What is the applications of Java in development of software? What type of applications can be developed using Java programming Language? Can anyone tell me the url for downloading sample projects in Java
online java traaining - Java Beginners
online java traaining  HI, Can u tell me ! that where i can study online training for java study?? Where i get home work or task or daily lab... java examples regarding core java,IO package, Threads,Collections, Swing etc. You
Java Spring Online Training
Java Spring Online Training Java spring training online is sought... kinds of java developments. A java spring Framework online training enables.... There are various beneficiaries of online Java spring framework training and large
JAVA JAZZ UP - Free online Java magazine
? will provide Java developers an online testing service to test and monitor Java... JAVA JAZZ UP - Free online Java magazine   ... Java Around the Globe   Sony Ericsson to provide new online
online voting system source code in java
online voting system source code in java  Please send me source code for online voting system in java. please replay as fast as. Thank you
online shopping project report with source code in java
online shopping project report with source code in java  Dear Sir/Mam, i want to a project in java with source code and report project name online shopping. thank you
online shopping project in java - JDBC
online shopping project in java  hii, i am doing a project online shopping in JSP-SERVLET.I wanted to know that i need 2 use images which will be retrieved through oracle 10g. 1) what is the best strategy for storing
I want to learn Java programming language online
to make career in IT industry. I want to learn Java programming language online from best tutorials online. What are the best Java tutorials for beginners... for application development and create enterprise applications. Since inception Java
Online Cab Booking using Java (Struts2+Hibernate)
Online Cab Booking using Java (Struts2+Hibernate)  hi anyone send me the online cab booking(cab booking and canceling)using java+Struts2 its for my interview can u send as soon as possible.. thank u :) Surya
Java Training Online
Java Training Online The increasing use of Java in IT industry has opened... offers Java training online to them so that they can?t stay behind in this knowledge driven world. Being one of the leading portals for online java training
Java Certification Training Online
Java Certification Training Online So, why should we go for a online... IT field. Rose India's online java certification training program is meant..._TO_REPLACE_2 After completing the java certification training online, student
Online Java Class
Online Java Classes Today, softwares have made their foray into every field... should be well versed with the fundamentals of Java. Leaning Online Java... application developer, one not only needs to be conceptually strong in Java
What are the best online Java programming courses for beginners?
What are the best online Java programming courses for beginners?  Hi... a good and expert Java programmer. So, searching for best tutorials online... examples in various subject of Java. What are the best online Java programming
Java Online Training in USA
Java Online Training in USA Java, an object oriented programming language.... Professionals from around the world often look for an online training course in Java... Java online training in USA. Here students are taught various applications
online voting
online voting  can i have the code for online voting in java
online voting
online voting  can i have the code for online voting in java
What are the best online advanced Java tutorials?
What are the best online advanced Java tutorials?  Hi, Just learned Core Java and now I want to learn Advanced Java. What are the best online advanced Java tutorials? Thanks   Hi, Advanced Java is next step towards
Online Java Training Courses
Java Training Online Course Java training online course is much in demand... proficiency in least time. The Online Advance Java course content is exhaustive... wishes. This virtual training program has enabled various students to learn java
Online Java Training
Free online Java training is provided by RoseIndia that is gaining laurels.... Both can gain much from this online training as every aspects and topics of Java.... The online training of Java includes Java lectures, Java tutorials, Java examples

Ads