title: Why does request.getParameter() return null?
body: <p>I have 2 different shopping pages that send to a checkout page, on the checkout page I want to display the 1 item cart. I am trying to use code from the database sent through these webpages to access the data I need but I keep getting null values on the checkout page. How can I actually get the data to read through?</p>
  <p><strong>Search Page</strong></p>
  <pre><code>&lt;% if (request.getMethod() == &quot;POST&quot;) {
                              String bookName = request.getParameter(&quot;BookName&quot;);
                              Book foundBook = new Book();
  
                              foundBook.selectByTitle(bookName);
                      %&gt;
                      &lt;form method=&quot;post&quot; action=&quot;checkout.jsp&quot;&gt;
                          &lt;img src=&quot;&lt;%=foundBook.bookPhoto%&gt;&quot; width=&quot;75&quot; height=&quot;100&quot;&gt;
                          &lt;div&gt;&lt;label&gt;Title&lt;/label&gt;&lt;/div&gt;
                          &lt;input id=&quot;title&quot; name=&quot;title&quot; placeholder=&quot;Title&quot; value=&quot;&lt;%=foundBook.bookTitle%&gt;&quot; disabled/&gt;&lt;br /&gt;
                          &lt;br /&gt;
                          &lt;div&gt;&lt;label&gt;Author&lt;/label&gt;&lt;/div&gt;
                          &lt;input id=&quot;author&quot; name=&quot;author&quot; placeholder=&quot;Author&quot; value=&quot;&lt;%=foundBook.bookAuthor%&gt;&quot; disabled/&gt;&lt;br /&gt;
                          &lt;br /&gt;
                          &lt;div&gt;&lt;label&gt;ISBN&lt;/label&gt;&lt;/div&gt;
                          &lt;input name=&quot;ISBN&quot; placeholder=&quot;ISBN&quot; value=&quot;&lt;%=foundBook.bookISBN%&gt;&quot; disabled/&gt;&lt;br /&gt;
                          &lt;br /&gt;
                          &lt;div&gt;&lt;label&gt;Description&lt;/label&gt;&lt;/div&gt;
                          &lt;input id=&quot;description&quot; name=&quot;description&quot; placeholder=&quot;Description&quot; value=&quot;&lt;%=foundBook.bookDesc%&gt;&quot; disabled/&gt;&lt;br /&gt;
                          &lt;br /&gt;
                          &lt;div&gt;&lt;label&gt;Price&lt;/label&gt;&lt;/div&gt;
                          &lt;input id=&quot;price&quot; name=&quot;price&quot; placeholder=&quot;Price&quot; value=&quot;&lt;%=foundBook.bookPrice%&gt;&quot; disabled/&gt;&lt;br /&gt;
                          &lt;br /&gt;
                          &lt;input type=&quot;submit&quot; value=&quot;Buy&quot;&gt;
                      &lt;/form&gt;
  
                      &lt;%
                          }
                      %&gt;
  </code></pre>
  <p><strong>Shop Page</strong></p>
  <pre><code>                    while (rs.next()) {
                  %&gt;
                  &lt;TR&gt;
                  &lt;form method=&quot;post&quot; action=&quot;checkout.jsp&quot;&gt;
                      &lt;TD&gt;&lt;input type=&quot;text&quot; name=&quot;title&quot; value=&quot;&lt;%=rs.getString(2)%&gt;&quot; disabled/&gt;&lt;/TD&gt;
                      &lt;TD&gt;&lt;input type=&quot;text&quot; name=&quot;author&quot; value=&quot;&lt;%=rs.getString(3)%&gt;&quot; disabled/&gt;&lt;/TD&gt;
                      &lt;TD&gt;&lt;input type=&quot;text&quot; name=&quot;ISBN&quot; value=&quot;&lt;%=rs.getString(4)%&gt;&quot; disabled/&gt;&lt;/TD&gt;
                      &lt;TD&gt;&lt;input type=&quot;text&quot; name=&quot;description&quot; value=&quot;&lt;%=rs.getString(5)%&gt;&quot; disabled/&gt;&lt;/TD&gt;
                      &lt;TD&gt;&lt;input type=&quot;text&quot; name=&quot;price&quot; value=&quot;&lt;%=rs.getDouble(6)%&gt;&quot; disabled/&gt;&lt;/TD&gt;
                      &lt;TD&gt;&lt;img src='&lt;%=rs.getString(7)%&gt;' width='100' height='100'&gt;&lt;/TD&gt;
                      &lt;TD&gt;&lt;button type=&quot;submit&quot;&gt;Buy&lt;/TD&gt;&lt;/form&gt;
                  &lt;/TR&gt;
                  &lt;% } %&gt;
  </code></pre>
  <p><strong>Checkout Page</strong></p>
  <pre><code>                        String isbn = request.getParameter(&quot;ISBN&quot;);
                          Book b2 = new Book();
                          b2.selectByISBN(isbn);
                          b2.display();
                      %&gt;
                      &lt;TR&gt;
                          &lt;TD class=&quot;title&quot;&gt;&lt;input name=&quot;title&quot; value=&quot;&lt;%=b2.getTitle()%&gt;&quot; disabled&gt;&lt;/TD&gt;
                          &lt;TD class=&quot;isbn&quot;&gt;&lt;input name=&quot;isbn&quot; value=&quot;&lt;%=b2.getISBN()%&gt;&quot; disabled&gt;&lt;/TD&gt;
                          &lt;TD class=&quot;price&quot;&gt;&lt;input name=&quot;price&quot; value=&quot;&lt;%=b2.getPrice()%&gt;&quot; disabled&gt;&lt;/TD&gt;
                          &lt;TD class=&quot;photo&quot;&gt;&lt;img src='&lt;%=b2.getPhoto()%&gt;' width='100' height='100'&gt;&lt;/TD&gt;
                      &lt;/TR&gt;
  </code></pre>