I want to create a form in JSP that will accept the purchase order number and other details. Then i want to proceed to enter the list of items until I press the close button.
Please Help me to solve this problem
Simply use ajax for that. You will be on the same page, you will not be submitting the request directly, your request will be generated asynchronously. Search for ajax tutorials on google or go to javascript/ajax forum.
Or you can send the request to a servlet, and then forward that request again to this jsp, with attributes set as on the previous page.