title: muliple annotations found at this line in jsp
body: <p>I working in a program in jsp, trying myself learning a jsp.</p>
  
  <p>so i doing a quiz program, where questions are get from the database tables. So here is the code of the quiz page, where questions are posted.</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;%@ include file="_header.jsp"%&gt;
  
      &lt;center&gt;QUIZ PROGRAM&lt;/center&gt;
  
      &lt;br /&gt;
  
      &lt;%@ page import="java.sql.*"%&gt;
  
      &lt;%
          //print the question and answer
  
          int questionaire = 1;
          Class.forName("com.mysql.jdbc.Driver");
          Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/quiz", "root", "");
          PreparedStatement pst = con.prepareStatement("SELECT * FROM questions WHERE id = ?");
          pst.setInt(1, questionaire);
  
          ResultSet rs = pst.executeQuery();
  
          int questionId;
          String questionp;
  
          if (rs.next()) {
              questionId = rs.getInt("id");
              String questionp = rs.getString("question");
              //String option1 = rs.getString("option1");
              //String option2 = rs.getString("option2");
              //String right = rs.getString("right");
              questionaire++;
          }
          //get the answer and check
          //String question1 = "asd";
      %&gt;
  
      &lt;center&gt;
          &lt;form method="post" action="quiz.jsp"&gt;
              &lt;table border="1" cellpadding="5" cellspacing="2" align="center"&gt;
                  &lt;thead&gt;
                      &lt;tr&gt;
                          &lt;th colspan="2"&gt;&lt;% out.println(questionp); %&gt;&lt;/th&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody&gt;
  
                      &lt;tr&gt;
                          &lt;td&gt;&lt;input type="radio" name="question"
                              value="value1"&gt;Yes&lt;/td&gt;
                          &lt;td&gt;&lt;input type="radio" name="question"
                              value="value2"&gt;No&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td colspan="2" align="center"&gt;&lt;input type="submit"
                              value="Next" onClick="next();" /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tbody&gt;
              &lt;/table&gt;
          &lt;/form&gt;
      &lt;/center&gt;
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In the above code, i am getting a error in this line stating that,</p>
  
  <pre><code>String questionp = rs.getString("question");
  </code></pre>
  
  <p>muliple annotations found at this line</p>
  
  <p><a href="https://i.stack.imgur.com/1PQqp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1PQqp.png" alt="enter image description here"></a></p>