일부 추가 읽기 전용 필드를 사용하여 제출 한 후 jsp 페이지를 수정하고 싶습니다. 반복자와 조건을 사용했습니다. 나는 struts2에서 일하고있다. 저장 후 저장 페이지를 재설정하는 방법은 무엇입니까?저장 후 저장 페이지를 재설정하는 방법은 무엇입니까?
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;
}