G Sirish, EJB Session and Entity beans were designed to tackle your exact problem of transaction management.
If there is no way you can use EJBs then look to introduce a controller
servlet and a POJO model (following the MVC approach), then you could create a Transfer Object to hold the data, manipulate that object using the servlet to call methods on the model, use the JSP as a view - then either commit the object's properties to the database or delete it using the servlet to call methods on the model. However, there are many problems you need to deal with when using Transfer Objects (i.e. creating Factories, stale data...), most of which the EJB designers have already solved.