Home Answers Viewqa JSP-Servlet question paper

 
 


pripa
question paper
0 Answer(s)      3 years and a month ago
Posted in : JSP-Servlet

I am doing a project in jsp of creating question paper from question bank.
Here we have to generate a paper based on the language like c,c++.
we want to know how to generate the paper by considering two question from each area like inheritence,exception handling.the question has to be randomly gnererated from question bank database which has area_id and language_id and questions. Kindly give us a logic how to select questions accordingly.
we tried the following logic but it does not work.WE are working in net beans(derby server).
ResultSet rs = st.executeQuery("select tech,t.tid,a.tid,aid from technology t,area a where t.tid=a.tid ");
while(rs.next())
{
if(option.equals(rs.getString(1)))
{
tid = rs.getString(2);



if(tid.equals(rs.getString(3)))
{
aid = rs.getString(4);
%>
<p><%=aid%></p>

<%



ResultSet rp=st.executeQuery("select * from qp order by random() ");
while(rp.next()){
while(rp.getString(3).equals(rs.getString(4))){
%> <p><%=rp.getString(4)%></p><%
}
}
}


}}
Here we first selected the desired language(technology) and in each technlogy we have different areas.We selected the areas and put them in an array and from each array element we tried to select questions under each element to apply random number generation function to select question but it does not work.
View Answers









Related Pages:
question paper - JSP-Servlet
question paper  I am doing a project in jsp of creating question paper from question bank. Here we have to generate a paper based on the language like c,c++. we want to know how to generate the paper by considering two
How to design a burning paper, a burning paper, paper
How to design a burning paper       You will learn here how to give a fire effect to the poster trough this example. Open any Picture: Capture a picture of the poster
How to design a turn corner of the paper
How to design a turn corner of the paper
Print in a long paper - Java Beginners
Print in a long paper  how to print text in long paper?? each print text, printer stops. not continue until the paper print out. Thanks
How to design a burn paper
How to design a burn paper       This tutorial teaches you to draw a burn paper, I am going to make this effect on a simple paper. Let's start. New File
Question In the Network ?
Question In the Network ?  Description Task: Joeâ??s Brokerage House currently has 25 standalone computers and five laser printers distributed... for the company. On blank piece of paper, sketch the network design you think
How to convert new paper into a man shape, convert new paper into a man shape, new paper into a man shape
How to convert new paper into a man shape       Learn a technique to convert news paper to the man shape in this example. Take a new picture: Take a news paper picture
Designing Printing Motion of a Paper
Designing Printing Motion of a Paper. It is very interesting... printer work effect. I have taken a printer and a blank paper. A blank paper... to take a printer image to modify. Paper: Select Rectangle Tool (U key
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
Question
Question   When there is an exception in my program how java runtime system handles
question
question  dear sir/madam my question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned question...we have to compare each and every word
question
question  Dear sir i had some typing mistake at previous question so its my humble request to let me know the steps to start the tomcat6 under the tomcat directory
question
question  Gud morning sir, I have asked u some question regarding jsp in saturaday for that i didnot find any answere in which u send me the some of the links.U have asked me the specify some details. There is a entity name
Question?
Question?  My question is how to: Add a menu bar to the program with a File menu. In the File menu, add a submenu (JMenuItem) called About. When the user clicks on the About menu item, display a JOptionPane message dialog

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.