Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You're not getting anything because you're not iterating your list of books. Also, you're only printing lots of <code>&lt;input type="text" /&gt;</code> on each iteration. Your code should look like this (assuming that your list of books is <code>lstBooks</code> and it's already initialized):</p> <pre><code>&lt;table&gt; &lt;!-- here should go some titles... --&gt; &lt;tr&gt; &lt;th&gt;ISBN&lt;/th&gt; &lt;th&gt;Title&lt;/th&gt; &lt;th&gt;Authors&lt;/th&gt; &lt;th&gt;Version&lt;/th&gt; &lt;/tr&gt; &lt;c:forEach begin="1" end= "${ no }" step="1" varStatus="loopCounter" value="${lstBooks}" var="book"&gt; &lt;tr&gt; &lt;td&gt; &lt;c:out value="${book.isbn}" /&gt; &lt;/td&gt; &lt;td&gt; &lt;c:out value="${book.title}" /&gt; &lt;/td&gt; &lt;td&gt; &lt;c:out value="${book.authors}" /&gt; &lt;/td&gt; &lt;td&gt; &lt;c:out value="${book.version}" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/c:forEach&gt; &lt;/table&gt; </code></pre> <hr> <p>After understanding your problem based on comments, make sure the <code>${no}</code> variable is available at <code>request.getAttribute("no")</code>. You can test this using a scriptlet (but this is a <a href="https://stackoverflow.com/q/3177733/1065197/">bad idea</a>) or just using <code>&lt;c:out value="${no}" /&gt;</code>.</p> <p>Note that as I've said, the variable should be accesible through <code>request.getAttribute</code>, do not confuse it with <code>request.getParameter</code>.</p> <p>By the way, you can set a variable if you know which could be it's value like this:</p> <pre><code>&lt;c:set var="no" value="10" /&gt; </code></pre> <p>And then you can access to it using <code>${no}</code>.</p> <p>More info: <a href="http://www.tutorialspoint.com/jsp/jstl_core_set_tag.htm" rel="nofollow noreferrer">JSTL Core Tag</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload