Reputation: 47
I develop a web application in java jee, and I would like to know how to use the button continue and go back in the post method in a form? thank you in advance
Upvotes: 0
Views: 291
Reputation: 332
suppose your back page name is back.jsp
then use
<form action="${pageContext.request.contextPath}/back.jsp" method="post">
<input type="submit" value="back"/>
</form>
suppose your forward page name is forward.jsp
then use
<form action="${pageContext.request.contextPath}/forward.jsp" method="post">
<input type="submit" value="next"/>
</form>
Upvotes: 0