title: Passing an object from JSP page back to Servlet
body: <p>In short, I want to know how to pass an <code>object</code> from JSP page back to a Servlet. Specifically, I have a form element whose action tag references a servlet. On form submission, I want to embed an <code>object</code> in <code>HttpServletRequest</code> request <code>object</code> so that it can be dereferenced by servlet.</p>
  
  <p>So far, I have tried setting <code>request.setAttribute(object)</code> in JSP page. But still retrieving it from servlet gives it as null. Any pointers would be appreciated.</p>