0

is it possible to redirect my jsp page to the same jsp page,with some form values filled in? like if I have first.jsp that contains a form, then I would want to redirect it back to first.jsp with a few buttons enabled and the form values should be filled automatically this time. I know how to enable the buttons, it's just the refilling of form that's troubling me. Or even if I had to redirect to another jsp, say second.jsp,but how do I retain the form values?

Kazekage Gaara
  • 14,972
  • 14
  • 61
  • 108

2 Answers2

2

Yes this is possible and easily doable with JSTL. Look at my answer here How to re-populate form fields on a jsp page after failed server validation

You can just do <input name="foo" type="text" value="${param.foo}"/>

Community
  • 1
  • 1
Amir Raminfar
  • 33,777
  • 7
  • 93
  • 123
-1

have you considered using spring binding?

raq
  • 175
  • 1
  • 2
  • 11