Je veux modifier ma page jsp après la soumission avec quelques champs additionnels en lecture seule. J'ai utilisé des itérateurs et si les conditions. Je travaille dans Struts2. Comment réinitialiser ma page de sauvegarde après l'enregistrement?Comment réinitialiser ma page de sauvegarde après l'enregistrement?
public String savePerson(){
Session hSession = ActionManager.getHibernateSession();
profileObj.setProfileId(pid);
Date doBirth = DateFunctions.toDate(dob);
profileObj.setDob(doBirth);
try{
pid = ProfileDAO.getInstance().addProfils(hSession, profileObj);
addressObj.setProfileId(pid);
AddressDAO.getInstance().addAddress(hSession, addressObj);
setMessage("Succesfully saved.");
if (pid > 0){
hSession.clear();
resetProfile(pid);
//i want to include my jsp page with hidden fields additionally.
}
} catch (HibernateException hExc) {
setMessage("Unable to save.");
return ERROR;
} finally {
ActionManager.closeHibernateSession();
}
return SUCCESS;
}