Home Answers Viewqa Java-Beginners online test application in java

 
 


zaidkhan
online test application in java
1 Answer(s)      9 months ago
Posted in : Java Beginners

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 Pages:
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
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 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
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 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 examination
online examination  coding for multiple choice question in jsp   We are providing you a simple application. Create table test...: http://www.roseindia.net/jsp/online-quiz-application-jsp.shtml
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
Introduction To Application
Introduction To Application The present application is an online test application, which takes online tests on programming languages. In this application... successful registration he is eligible for online test examination. To appear
Build and Test tools
Build and Test tools Application Build and Test tools tutorials... tools available in Java: Java build and Test Tools DBUNIT ANT... application highly testable. You can run unit test, integration test
online examination system mini project
; For more information, visit the following link: Struts Online Test Application...online examination system mini project  i developed a project on online examination system using jsp and java script . I am getting the quetion
Using JMeter for a Simple Test
to set up a test plan and stress test a Web application. Before proceeding... requests to the tested application. And if disabled then the test will be repeated... application. Retrieve all images and Java Applets -- This option is used
java test
java test  How to read the data from an .csv file and write into an xml file using java? (test_sample.csv(it should contain at least 39 lines)) i...:\\Documents and Settings/janardhany/Desktop/test_sample.txt
Test and debug enterprise components
and Java classes. To use the Universal Test... Test and debug enterprise components Prev Chapter 1. Design, build and test reusable enterprise
test case
test case  Hi Can you explain me how to write test case in java. regards kennedy
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
JUnit and Test-Driven Development
Java NotesJUnit and Test-Driven Development Test-Driven Development One... test frameworks make use of Java 5 annotations. The JUnit authors have not been... shift, is Test Driven Development (TDD). This puts writing tests near the front
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
how to conduct the test in java
how to conduct the test in java  how to conduct the test in java
Online Java Training for Beginners
Online Java Training for Beginners The online java training for beginners... or no knowledge of Java programming can undertake Rose India's online Java training for the beginners. The Online Java Programming course for the beginner's
test case - JUNIT
test case  Hi i am doing project on online reservation i want to know how to write the test case template for this online reservation
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
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
java test - Java Beginners
java test   Trace through the following program segment and state clearly the output that will be generated: public static void main(String [] args){ int no1; int no2; for (no1 = -2; no1 <= 1; no1++){ for (no2
Chapter 2. Design, build and test web components
everything from there. When you test your web application... for each Web application, for each Java virtual machine. Because... Chapter 2. Design, build and test web
Running 'assertEquals' method in Junit Test From Ant
(excepted, actual) method are used  to test the application with the JUnit... Running 'assertEquals' method in Junit Test From Ant... class. JUnit  and Ant are necessary tools for Java development. JUnit provide
Java Certification Training Online
Java Certification Training Online So, why should we go for a online... India's online java certification training program is meant for people who... the java certification training online, student will be able to understand
Junit @Test annotation
Junit @Test annotation  What is the Application of @Test Annotation in JUnit ?   The Test annotation tells JUnit that the public void method to which it is attached can be run as a test case : public class Example
Java: Example - Palindrome test
Java: Example - Palindrome test //========================================================= isPalindrome // This method returns 'true' if the parameter // is a palindrome, a word that is spelled the // same both
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
Create test engine - Java Beginners
Create test engine  How can create a test engine dat generates questions randomly using javax.swing in java
September 2007 Issue of Java Jazz up magazine
September 2007 Issue of Java Jazz up magazine         Java Around the Globe Will provide Java developers an online testing service to test and monitor Java
IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide
IBM Test 000-287. Enterprise Application Development... in preparation for IBM Test 000-287 (Enterprise Application Development..., develop and test Java Servlets, filters and listeners
How to download, compile and test the tutorials using ant.
the application on tomcat: Download the code and then extract it using WinZip... apps directory. To compile the application open command prompt and go to <... will compile the java files and create struts2tutorial.jar and place in the lib
Online, Classroom and Onsite Training
Online, Classroom and Onsite Training We are providing Online... on web development, desktop application development, mobile application development and application testing. All these courses can be taken on one to one
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
online exam
online exam  The Government of Byteland has decided to issue new currency notes with special protection features to commemorate their great... will contain the number of test cases T (1<=T<=6666). Each test case will have one
online exam
online exam  The Government of Byteland has decided to issue new currency notes with special protection features to commemorate their great... will contain the number of test cases T (1<=T<=6666). Each test case will have one
online exam
online exam  The Government of Byteland has decided to issue new currency notes with special protection features to commemorate their great... will contain the number of test cases T (1<=T<=6666). Each test case will have one
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
online quiz
online quiz  Define a Question class which stores a multiple choice question having one correct answer. Each question has a complexity (difficulty..., and prints the final results.(with using core java concepts   stop spamming
Developing a program to test
Developing a program to test       Developing a program to test Given below program is to test the script : Qunit.html <
junit test case - Java Beginners
junit test case  how to use junit for testing email id format  Hi Friend, Please visit the following link: http://www.roseindia.net/junit/ Hope that it will be helpful for you. Thanks
Chapter 2. Design, build and test web components
; Chapter 2. Design, build and test web components Design, develop and test Java Servlets, filters and listeners... Chapter 2. Design, build and test web
Test Actions
Test Actions An example of Testing a struts Action is given below using the junit. In this example the execute method is being test. HelloAction.java... method stub result = helloAction.execute(); super.setUp(); } @Test

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.