I have a main
jsp, let call it jsp1. jsp1 has a hyperlink; when the link is clicked, it opens another jsp window, let name it jsp2. In jsp2, there are two buttons, Submit and Cancel. When the cancel button is clicked, it goes back to jsp1 and closes jsp2 window. When the submit button is clicked, it validates the inputs; if there is no error, it also goes back to jsp1 and closes jsp2 window. If any errors occur, it displays the error messages in jsp2.
Can someone know how to implement the above requirement with
Struts?
Thanks!