Passing an object from JSP page back to Servlet

前端 未结 3 938
执念已碎
执念已碎 2020-11-22 15:09

In short, I want to know how to pass an object from JSP page back to a Servlet. Specifically, I have a form element whose action tag references a servlet. On fo

3条回答
  •  天命终不由人
    2020-11-22 15:53

    once the JSP is rendered the request object is over. So the object you set on request of JSP is available for that JSP page request alone. Do you have any constraint on using session instead of request. So, session can hold data between fresh requests until the session expires.

提交回复
热议问题