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

前端 未结 2 1451
北荒
北荒 2020-11-22 06:54

After submitting data in the HTML from, a servlet adds these data to my DB and forwards a result message to a JSP page. I want to retain the initially submitted values in th

2条回答
  •  离开以前
    2020-11-22 07:18

    For the select statement maybe you can just use javascript.

    document.getElementById('baz').value = '${param.baz}';

提交回复
热议问题