Showing the URL of the view in the address bar, instead of the one of the action
- by aditya
@RequestMapping(value = "updatePatient", method = RequestMethod.POST)
public ModelAndView postUpdatePatientById(
@ModelAttribute("patient") PatientForm patientForm,
HttpSession session) {
Long id = (Long) session.getAttribute("refId");
if (id != 0 || id != null) {
Patient patient1 = HospitalPatientHelper
…