posted 11 years ago
Hi, I am developing a web application based on struts2, hibernate and spring. The problem is that the details are not being saved in Database. Always the control reaches to prepare() method and it never goes to the register() method (as defined in struts.xml). Before i fill the details the registration form will have the screen with the validaions on the empty fields (which is not correct - i am not getting why these fields are appearing).
The code is as follows:
struts.xml
Customer.jsp
CustomerAction.java
CustomerAction-validation.xml
Whenever add button is pressed again the same input form with validations are appearing instead of saving in database and getting the registration successful screen.
thanks in advance
swapna