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.