Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can Anyone Tell me how to get the output of this page?

843840Feb 26 2010 — edited Mar 1 2010
Hi all of you. I like to get the output of the given page. Actually I stored the questions in database and when somebody select a question of a particular paper. The database show the question from the database. But I am not able to write the output code correctly. Can anyone help me .

Code Of questionpaper.jsp
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<html>
<body >
<form method="post" action="questionpaper.jsp">
 Enter the name of Paper
 <input name="paper" type="text" />
 <br />

Choose the question
  <p>
    <input type="radio" name="question" value="q1"  />
      Question 1
    <br />
     <input type="radio" name="question" value="q2" />
      Question 2
    <br />
      <input type="radio" name="question" value="q3" />
      Question 3
    <br />    
  <input type= "submit"  value= "Enter To Get Question" />
    <br />

 <sql:query var="ques" scope="request">
   select ? from question_sheet 
   where paper = ? 
 <sql:param value="${param.question}" />
 <sql:param value="${param.paper}" />
 </sql:query>


Result<br />
 <c:out value="${param.paper}" /><br />
 <c:out value="${ques.param.question}" />

</body>
</html>
please help me in the formation of this line
<c:out value="${ques.param.question}" />
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 29 2010
Added on Feb 26 2010
9 comments
204 views