当前位置: 动力学知识库 > 问答 > 编程问答 >

java: retaining values in a form after forward

问题描述:

This question already has an answer here:

  • How can I retain HTML form field values in JSP after submitting form to Servlet?

    2 answers

网友答案:

you have setAttrribute for the messsage for both first name and last name so that that attribute can be obtain by the method request.getAttribut("","") and you want to display that entered value then you should use same which you have used in servlet that is request.getParameter("fname")

分享给朋友:
您可能感兴趣的文章:
随机阅读: