Hello everyone,
I need to pass some parameters from my servlet to my JSP. I am able to access 2 of my parameters from the request object, but one of them is returning null value.
Here's my servlet snipet:
request.setAttribute("selectedA", aBook);
request.setAttribute("selectedB", bBook);
request.setAttribute("book_ref", book_ref);
logger.info("book_ref = " + book_ref); // <-- The value for book_ref is correct in my servlet.
RequestDispatcher rd = request.getRequestDispatcher("/jsp/book.jsp");
rd.forward(request, response);
From my JSP, here's the snipet: The first two parameters are coming back alright. The last one comes back null. In my servlet, I do a printout, and the value of book_ref is correct. Anything I am missing????
A-Book = ${param.selectedA} <br>
B-Book = ${param.selectedB} <br>
Book-Ref = ${param.book_ref}