Reputation: 71
I have a form which is in two jsps when the details in first jsp is filled after clicking next the form in next jsp must appear please suggest me how to solve this it must render using javascript
Upvotes: 2
Views: 864
Reputation: 11698
I assume you need some information from the first form in first.jsp
to render the second form in second.jsp
You can go with following approaches to have step-by-step forms:
first.jsp
. (check this out to see how its done)second.jsp
<div>
tag.style=display:none;
second.jsp
return a JSON (if required to fill some values of second form)<div>
and fill in the details.Just in case your second form does not depend on first form:
<div>
and hide the second part <div>
as mentioned above.next
button show the second formHope this helps.
Upvotes: 2