Changeset 5147
- Timestamp:
- 08/03/08 22:10:35 (5 months ago)
- Files:
-
- openmrs-modules/registration/web/module/registerPatientForm.jsp (modified) (8 diffs)
- openmrs-modules/registration/web/module/resources/scripts/registerPatient.js (modified) (1 diff)
- openmrs-modules/registration/web/src/org/openmrs/module/registration/model/RegisterPatientModel.java (modified) (1 diff)
- openmrs-modules/registration/web/src/org/openmrs/module/registration/web/controller/RegisterPatientFormController.java (modified) (5 diffs)
- openmrs-modules/registration/web/src/org/openmrs/module/registration/web/controller/RegistrationFormController.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/registration/web/module/registerPatientForm.jsp
r5131 r5147 2 2 <openmrs:require privilege="Add Patients" otherwise="/login.htm" redirect="/module/registration/registration.form" /> 3 3 <%@ include file="/WEB-INF/template/header.jsp"%> 4 4 <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> 5 5 <script type="text/javascript" src="/openmrs/moduleResources/registration/scripts/jquery-1.2.6.js"></script> 6 6 <script type="text/javascript" src="/openmrs/moduleResources/registration/scripts/registerPatient.js"></script> … … 15 15 <h2><spring:message code="registration.msg.newPatientWelcome"/></h2> 16 16 <openmrs:globalProperty key="registration.allowIDEntry" defaultValue="false" var="allowIDEntry"/> 17 <form method="post"commandName="patient" >17 <form:form commandName="patient" > 18 18 <table cellspacing="0" cellpadding="7"> 19 19 <tr> … … 47 47 <tbody id="identifiersTbody"> 48 48 <tr> 49 <td id="loadedID"> 1MUM-6</td>49 <td id="loadedID"></td> 50 50 </tr> 51 51 </tbody> … … 63 63 <tr> 64 64 <td> <input type="text" name="identifier" size="30"/> </td> 65 <td> <select name="identifierType"> <option value="2"> Old Identification Number </option> <option value="1"> OpenMRS Identification Number </option> </select> </td> 66 <td> <select name="location"> <option value=""/> <option value="1"> Unknown Location </option> </select> </td> 65 <td> <select name="identifierType"> <option value="2"> Old Identification Number </option> <option 66 value="1"> OpenMRS Identification Number </option> </select> </td> 67 <td> <select name="location"> <option value=""/> <option value="1"> Unknown Location </option> 68 </select> </td> 67 69 <td align="center" valign="middle"> <input type="radio" value="" name="preferred"/> </td> 68 <td align="center" valign="middle"> <input class="closeButton" type="button" value="Remove" name="closeButton"/> </td> 70 <td align="center" valign="middle"> <input class="closeButton" type="button" value="Remove" 71 name="closeButton"/> </td> 69 72 </tr> 70 73 </tbody> … … 77 80 <th class="headerCell"><spring:message code="registration.labels.demographics"/></th> 78 81 <td class="inputCell"> 79 <table> 80 <thead> 81 <th><spring:message code="registration.labels.gender"/></th> 82 <th><spring:message code="registration.labels.age"/></th> 83 <th><spring:message code="registration.labels.birthdate"/> <i style="font-weight: normal; font-size: 0.8em;">(Format: mm/dd/yyyy)</i> </th> 84 <th><spring:message code="registration.labels.tribe"/></th> 85 </thead> 86 <tbody> 87 <tr> 88 <td style="padding-right: 3em;"> 89 <c:choose> 90 <c:when test="${patient.gender == 'M'}"> 91 <input id="M" type="radio" checked="" value="M" name="gender"/> <label for="M"> Male </label> 92 <input id="F" type="radio" value="F" name="gender"/> <label for="F"> Female </label> 93 </c:when> 94 <c:otherwise> 95 <input id="M" type="radio" value="M" name="gender"/> <label for="M"> Male </label> 96 <input id="F" type="radio" checked="" value="F" name="gender"/> <label for="F"> Female </label> 97 </c:otherwise> 98 </c:choose> 99 </td> 100 <td style="padding-right: 3em;"> 101 <span id="age"></span> 102 </td> 103 <td style="padding-right: 3em;"> 104 <input id="i18n" type="text" value="${patient.birthdateString}" size="10" name="birthdate" autocomplete="off" onchange="changeAge()" /> 105 <span id="birthdateEstimatedCheckbox" class="" style="padding: 5px;"> 106 <label for="birthdateEstimatedInput">Estimated</label> 107 <input type="hidden" name="_birthdateEstimated"/> 108 <input id="birthdateEstimatedInput" type="checkbox" onclick="if (!this.checked) updateEstimated()" value="true" name="birthdateEstimated"/> 109 </span> 110 </td> 111 <td> <select name="tribe"> <option value=""/> <option value="1"> Unknown </option> </select> </td> 112 </tr> 113 </tbody> 114 </table> 115 </td> 82 <table> 83 <thead> 84 <th><spring:message code="registration.labels.gender"/></th> 85 <th><spring:message code="registration.labels.age"/></th> 86 <th><spring:message code="registration.labels.birthdate"/> <i style="font-weight: normal; font-size: 87 0.8em;">(Format: mm/dd/yyyy)</i> </th> 88 <th><spring:message code="registration.labels.tribe"/></th> 89 </thead> 90 <tbody> 91 <tr> 92 <td style="padding-right: 3em;"> 93 <c:choose> 94 <c:when test="${patient.gender == 'M'}"> 95 <input id="M" type="radio" checked="" value="M" name="gender"/> <label for="M"> Male </label> 96 <input id="F" type="radio" value="F" name="gender"/> <label for="F"> Female </label> 97 </c:when> 98 <c:when test="${patient.gender == 'F'}"> 99 <input id="M" type="radio" value="M" name="gender"/> <label for="M"> Male </label> 100 <input id="F" type="radio" checked="" value="F" name="gender"/> <label for="F"> Female </label> 101 </c:when> 102 </c:choose> 103 </td> 104 <td style="padding-right: 3em;"> 105 <span id="age"> </span> 106 </td> 107 <td> 108 <input id="i18n" type="text" value="${patient.birthdateString}" size="10" name="birthdateString" 109 autocomplete="off" onchange="changeAge()" /> 110 <span id="birthdateEstimatedCheckbox" class="" style="padding: 5px;"> 111 <label for="birthdateEstimatedInput">Estimated</label> 112 <input type="hidden" name="_birthdateEstimated"/> 113 <input id="birthdateEstimatedInput" type="checkbox" onclick="if (!this.checked) updateEstimated()" 114 value="true" name="birthdateEstimated"/> 115 </span> 116 </td> 117 <td> <select name="group"> <option value=""/> <option value="1"> Unknown </option> </select> </td> 118 </tbody> 119 </table> 116 120 </tr> 117 121 <tr> … … 122 126 <tr> 123 127 <td><spring:message code="registration.labels.address"/></td> 124 <td colspan="7"> <input type="text" size="40" value=" " name="address.address1"/> </td>128 <td colspan="7"> <input type="text" size="40" value="${patient.address.address1}" name="address.address1"/> </td> 125 129 </tr> 126 130 <tr> 127 131 <td><spring:message code="registration.labels.address2"/></td> 128 <td colspan="7"> <input type="text" size="40" value=" " name="address.address2"/> </td>132 <td colspan="7"> <input type="text" size="40" value="${patient.address.address2}" name="address.address2"/> </td> 129 133 </tr> 130 134 <tr> 131 135 <td><spring:message code="registration.labels.cityVillage"/></td> 132 <td> <input type="text" size="10" value=" " name="address.cityVillage"/> </td>136 <td> <input type="text" size="10" value="${patient.address.cityVillage}" name="address.cityVillage"/> </td> 133 137 <td><spring:message code="registration.labels.stateProvince"/></td> 134 <td> <input type="text" size="10" value=" " name="address.stateProvince"/> </td>138 <td> <input type="text" size="10" value="${patient.address.stateProvince}" name="address.stateProvince"/> </td> 135 139 <td><spring:message code="registration.labels.country"/></td> 136 <td> <input type="text" size="10" value=" " name="address.country"/> </td>140 <td> <input type="text" size="10" value="${patient.address.country}" name="address.country"/> </td> 137 141 <td><spring:message code="registration.labels.postalCode" /></td> 138 <td colspan="1"> <input type="text" size="10" value=" " name="address.postalCode"/> </td>142 <td colspan="1"> <input type="text" size="10" value="${patient.address.postalCode}" name="address.postalCode"/> </td> 139 143 </tr> 140 144 <tr> 141 145 <td><spring:message code="registration.labels.latitude" /></td> 142 <td> <input type="text" size="10" value=" " name="address.latitude"/> </td>146 <td> <input type="text" size="10" value="${patient.address.latitude}" name="address.latitude"/> </td> 143 147 <td><spring:message code="registration.labels.longitude" /></td> 144 <td colspan="5"> <input type="text" size="10" value=" " name="address.longitude"/> </td>148 <td colspan="5"> <input type="text" size="10" value="${patient.address.longitude}" name="address.longitude"/> </td> 145 149 </tr> 146 150 </tbody> … … 156 160 <div id="deathInformation" style=""> 157 161 <b><spring:message code="registration.labels.deathDate" /></b> 158 <input id=" i18n" type="text" value="" size="10" name="deathDate" autocomplete="off"/>162 <input id="deathPicker" type="text" value="${patient.deathdate}" size="10" name="deathDate" autocomplete="off"/> 159 163 <i style="font-weight: normal; font-size: 0.8em;">(Format: mm/dd/yyyy)</i> 160 164 <spring:message code="registration.msg.causeMessage" /><span id="causeOfDeath_selection"> </span> … … 164 168 <tr><td> </td></tr> 165 169 <tr> 166 <td><input type="submit" value="<spring:message code="registration.labels.saveButton" /> "/></td><td><input type="reset" value="<spring:message code="registration.labels.resetButton" />" ></td>170 <td><input type="submit" value="<spring:message code="registration.labels.saveButton"/>"/></td><td><input type="reset" value="<spring:message code="registration.labels.resetButton" />" ></td> 167 171 </tr> 168 172 </table> 169 </form >173 </form:form> 170 174 <%@ include file="/WEB-INF/template/footer.jsp"%> openmrs-modules/registration/web/module/resources/scripts/registerPatient.js
r5116 r5147 2 2 $("#deathInformation").hide(); 3 3 $("#i18n").datepicker($.extend({}, 4 $.datepicker.regional[''], { 5 showStatus: true, 6 showOn: "both", 7 buttonImage: "/openmrs/moduleResources/registration/images/calendar.gif", 8 buttonImageOnly: true 9 })); 10 $("#deathPicker").datepicker($.extend({}, 4 11 $.datepicker.regional[''], { 5 12 showStatus: true, openmrs-modules/registration/web/src/org/openmrs/module/registration/model/RegisterPatientModel.java
r5131 r5147 15 15 16 16 import java.util.Date; 17 import java.util.HashMap;18 import java.util.Map;19 import org.openmrs.Concept;20 import org.openmrs.Patient;21 17 import org.openmrs.PatientIdentifier; 22 18 import org.openmrs.PersonAddress; 23 import org.openmrs.PersonAttribute;24 19 import org.openmrs.PersonName; 20 import org.openmrs.Tribe; 25 21 22 23 //<editor-fold defaultstate="collapsed"> 26 24 public class RegisterPatientModel { 27 25 28 private Integer patientId;29 private String identifier = "";30 private String otherIdentifiers = "";31 26 private PersonName name = new PersonName(); 32 private String otherNames = ""; 33 private String gender=""; 34 private String tribe = ""; 35 private Date birthdate=null; 27 private PatientIdentifier identifier = new PatientIdentifier(); 28 private String gender = ""; 29 private Tribe tribe = null; 30 private Date birthdate = new Date(); 31 private Date deathdate = new Date(); 36 32 private String birthdateString = ""; 37 33 private Boolean birthdateEstimated = false; 38 34 private PersonAddress address = new PersonAddress(); 39 private Boolean voided = false;40 private Boolean dead = false;41 private Concept causeOfDeath = null;42 private Date deathDate = null;43 private Map<String, PersonAttribute> attributeMap = null;44 35 45 36 public RegisterPatientModel() { 37 super(); 46 38 System.out.println("Inside Default Constructor"); 47 39 } 48 40 49 public RegisterPatientModel(Patient patient) { 50 this(); 51 if (patient != null) { 52 patientId = patient.getPatientId(); 53 54 // get patient's identifiers 55 boolean first = true; 56 for (PatientIdentifier pi : patient.getIdentifiers()) { 57 if (first) { 58 identifier = pi.getIdentifier(); 59 first = false; 60 } else { 61 if (otherIdentifiers.equals("")) { 62 otherIdentifiers += ","; 63 } 64 otherIdentifiers += " " + pi.getIdentifier(); 65 } 66 } 67 first = true; 68 for (PersonName pn : patient.getNames()) { 69 if (first) { 70 setName(pn); 71 first = false; 72 } else { 73 if (otherNames.equals("")) { 74 otherNames += ","; 75 } 76 otherNames += " " + pn.getGivenName() + " " + pn.getMiddleName() + " " + pn.getFamilyName(); 77 } 78 } 79 80 gender = patient.getGender(); 81 if (patient.getTribe() != null) { 82 tribe = patient.getTribe().getName(); 83 } 84 85 birthdate = patient.getBirthdate(); 86 birthdateEstimated = patient.isBirthdateEstimated(); 87 voided = patient.isVoided(); 88 dead = patient.isDead(); 89 causeOfDeath = patient.getCauseOfDeath(); 90 deathDate = patient.getDeathDate(); 91 address = patient.getPersonAddress(); 92 attributeMap = new HashMap<String, PersonAttribute>(); 93 for (PersonAttribute attribute : patient.getActiveAttributes()) { 94 attributeMap.put(attribute.getAttributeType().getName(), attribute); 95 } 96 } 41 public PersonName getName() { 42 return this.name; 97 43 } 98 44 99 /**100 * @return the patientId101 */102 public Integer getPatientId() {103 return patientId;104 }105 106 /**107 * @param patientId the patientId to set108 */109 public void setPatientId(Integer patientId) {110 this.patientId = patientId;111 }112 113 /**114 * @return the identifier115 */116 public String getIdentifier() {117 return identifier;118 }119 120 /**121 * @param identifier the identifier to set122 */123 public void setIdentifier(String identifier) {124 this.identifier = identifier;125 }126 127 /**128 * @return the otherIdentifiers129 */130 public String getOtherIdentifiers() {131 return otherIdentifiers;132 }133 134 /**135 * @param otherIdentifiers the otherIdentifiers to set136 */137 public void setOtherIdentifiers(String otherIdentifiers) {138 this.otherIdentifiers = otherIdentifiers;139 }140 141 /**142 * @return the name143 */144 public PersonName getName() {145 return name;146 }147 148 /**149 * @param name the name to set150 */151 45 public void setName(PersonName name) { 152 46 this.name = name; 153 47 } 154 48 155 /** 156 * @return the otherNames 157 */ 158 public String getOtherNames() { 159 return otherNames; 49 public PatientIdentifier getIdentifier() { 50 return this.identifier; 160 51 } 161 52 162 /** 163 * @param otherNames the otherNames to set 164 */ 165 public void setOtherNames(String otherNames) { 166 this.otherNames = otherNames; 53 public void setIdentifier(PatientIdentifier identifier) { 54 this.identifier = identifier; 167 55 } 168 56 169 /**170 * @return the gender171 */172 public String getGender() {173 return gender;174 }175 176 /**177 * @param gender the gender to set178 */179 57 public void setGender(String gender) { 180 58 this.gender = gender; 181 59 } 182 60 183 /** 184 * @return the tribe 185 */ 186 public String getTribe() { 187 return tribe; 61 public String getGender() { 62 return this.gender; 188 63 } 189 64 190 /** 191 * @param tribe the tribe to set 192 */ 193 public void setTribe(String tribe) { 65 public void setTribe(Tribe tribe) { 194 66 this.tribe = tribe; 195 67 } 196 68 197 /** 198 * @return the birthdate 199 */ 200 public Date getBirthdate() { 201 return birthdate; 69 public Tribe getTribe() { 70 return this.tribe; 202 71 } 203 72 204 /**205 * @param birthdate the birthdate to set206 */207 73 public void setBirthdate(Date birthdate) { 208 74 this.birthdate = birthdate; 209 75 } 210 76 211 /** 212 * @return the birthdateString 213 */ 214 public String getBirthdateString() { 215 return birthdateString; 77 public Date getBirthdate() { 78 return this.birthdate; 216 79 } 217 80 218 /**219 * @param birthdateString the birthdateString to set220 */221 81 public void setBirthdateString(String birthdateString) { 222 82 this.birthdateString = birthdateString; 223 83 } 224 84 225 /** 226 * @return the birthdateEstimated 227 */ 228 public Boolean getBirthdateEstimated() { 229 return birthdateEstimated; 85 public String getBirthdateString() { 86 return this.birthdateString; 230 87 } 231 88 232 /**233 * @param birthdateEstimated the birthdateEstimated to set234 */235 89 public void setBirthdateEstimated(Boolean birthdateEstimated) { 236 90 this.birthdateEstimated = birthdateEstimated; 237 91 } 238 92 239 /** 240 * @return the address 241 */ 242 public PersonAddress getAddress() { 243 return address; 93 public Boolean getBirthdateEstimated() { 94 return this.birthdateEstimated; 244 95 } 245 96 246 /**247 * @param address the address to set248 */249 97 public void setAddress(PersonAddress address) { 250 98 this.address = address; 251 99 } 252 100 253 /** 254 * @return the voided 255 */ 256 public Boolean getVoided() { 257 return voided; 101 public PersonAddress getAddress() { 102 return this.address; 258 103 } 259 104 260 /** 261 * @param voided the voided to set 262 */ 263 public void setVoided(Boolean voided) { 264 this.voided = voided; 105 public Date getDeathdate() { 106 return deathdate; 265 107 } 266 108 267 /** 268 * @return the dead 269 */ 270 public Boolean getDead() { 271 return dead; 272 } 273 274 /** 275 * @param dead the dead to set 276 */ 277 public void setDead(Boolean dead) { 278 this.dead = dead; 279 } 280 281 /** 282 * @return the causeOfDeath 283 */ 284 public Concept getCauseOfDeath() { 285 return causeOfDeath; 286 } 287 288 /** 289 * @param causeOfDeath the causeOfDeath to set 290 */ 291 public void setCauseOfDeath(Concept causeOfDeath) { 292 this.causeOfDeath = causeOfDeath; 293 } 294 295 /** 296 * @return the deathDate 297 */ 298 public Date getDeathDate() { 299 return deathDate; 300 } 301 302 /** 303 * @param deathDate the deathDate to set 304 */ 305 public void setDeathDate(Date deathDate) { 306 this.deathDate = deathDate; 307 } 308 309 /** 310 * @return the attributeMap 311 */ 312 public Map<String, PersonAttribute> getAttributeMap() { 313 return attributeMap; 314 } 315 316 /** 317 * @param attributeMap the attributeMap to set 318 */ 319 public void setAttributeMap(Map<String, PersonAttribute> attributeMap) { 320 this.attributeMap = attributeMap; 109 public void setDeathdate(Date deathdate) { 110 this.deathdate = deathdate; 321 111 } 322 112 } openmrs-modules/registration/web/src/org/openmrs/module/registration/web/controller/RegisterPatientFormController.java
r5131 r5147 14 14 package org.openmrs.module.registration.web.controller; 15 15 16 import java.text.SimpleDateFormat; 16 17 import java.util.Date; 17 18 import java.util.HashMap; … … 20 21 import javax.servlet.http.HttpServletRequest; 21 22 22 import javax.servlet.http.HttpServletResponse;23 23 import org.apache.commons.logging.Log; 24 24 import org.apache.commons.logging.LogFactory; 25 import org.openmrs.Location; 26 import org.openmrs.PatientIdentifier; 27 import org.openmrs.PatientIdentifierType; 28 import org.openmrs.PersonAddress; 25 29 import org.openmrs.PersonName; 30 import org.openmrs.api.EncounterService; 31 import org.openmrs.api.PatientService; 32 import org.openmrs.api.PersonService; 33 import org.openmrs.api.context.Context; 26 34 import org.openmrs.module.registration.model.RegisterPatientModel; 27 import org.springframework.validation.BindException;28 35 import org.springframework.validation.Errors; 29 36 import org.springframework.web.servlet.ModelAndView; … … 53 60 } 54 61 55 /**56 * @see org.springframework.web.servlet.mvc.SimpleFormController#onSubmit(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object, org.springframework.validation.BindException)57 */58 62 @Override 59 protected ModelAndView onSubmit( HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {63 protected ModelAndView onSubmit(Object command) throws Exception { 60 64 System.out.println("===>>>Inside onSubmit"); 61 RegisterPatientModel patient = (RegisterPatientModel) command; 62 if (patient.getPatientId() != null) { 63 System.out.println("PatientID = " + patient.getPatientId()); 64 } 65 if (patient.getIdentifier() != null) { 66 System.out.println("Identifer = " + patient.getIdentifier()); 67 } 68 if (patient.getOtherIdentifiers() != null) { 69 System.out.println("Other IDs = " + patient.getOtherIdentifiers()); 70 } 71 if (patient.getName() != null) { 72 System.out.println("PersonName = " + patient.getName()); 73 } 74 if (patient.getGender() != null) { 75 System.out.println("Gender = " + patient.getGender()); 76 } 65 66 PersonService personService = Context.getPersonService(); 67 EncounterService encounterService = Context.getEncounterService(); 68 PatientService patientService = Context.getPatientService(); 69 org.openmrs.Patient openmrsPatient = new org.openmrs.Patient(); 70 RegisterPatientModel patientModel = ((RegisterPatientModel) command); 71 Location location = new Location(1); 72 PatientIdentifierType identType = patientService.getPatientIdentifierType(1); 73 PatientIdentifier patientIdentifier = new PatientIdentifier("18MUM-7", identType, location); 74 openmrsPatient.addIdentifier(patientIdentifier); 75 76 openmrsPatient.addName(patientModel.getName()); 77 openmrsPatient.setGender(patientModel.getGender()); 78 openmrsPatient.setTribe(patientModel.getTribe()); 79 openmrsPatient.setBirthdate(patientModel.getBirthdate()); 80 openmrsPatient.addAddress(patientModel.getAddress()); 81 openmrsPatient.setDeathDate(patientModel.getDeathdate()); 82 System.out.println("Tribe = " + patientModel.getTribe()); 83 System.out.println("deathDate = " + patientModel.getDeathdate()); 84 System.out.println("deathDate = " + openmrsPatient.getDeathDate()); 85 patientService.savePatient(openmrsPatient); 77 86 return new ModelAndView(new RedirectView(getSuccessView())); 78 87 } 79 88 80 /**81 * This class returns the form backing object. This can be a string, a boolean, or a normal82 * java pojo.83 *84 * The type can be set in the /config/moduleApplicationContext.xml file or it can be just85 * defined by the return type of this method86 *87 * @see org.springframework.web.servlet.mvc.AbstractFormController#formBackingObject(javax.servlet.http.HttpServletRequest)88 */89 89 @Override 90 90 protected Object formBackingObject(HttpServletRequest request) throws Exception { … … 92 92 RegisterPatientModel registerPatientModel = new RegisterPatientModel(); 93 93 String name = request.getParameter("addName"); 94 String patientIdentifier = request.getParameter("identifier");94 //String patientIdentifier = request.getParameter("identifier"); 95 95 if (name != null) { 96 96 if (!name.equals("")) { … … 116 116 registerPatientModel.setBirthdateString(birthDate); 117 117 registerPatientModel.setBirthdate(new Date(birthDate)); 118 //registerPatientModel.setIdentifier(new PatientIdentifier("1MUM-6",new PatientIdentifierType(),new Location())); 119 //new PatientIdentifier().setIdentifier("1MUM-6"); 120 //String identifier = "1MUM-=6"; 121 //registerPatientModel.setIdentifier(identifier); 118 122 } 119 } else if (patientIdentifier != null) {120 if (!patientIdentifier.equals("")) {121 }122 }123 } //else if (patientIdentifier != null) { 124 //if (!patientIdentifier.equals("")) { 125 //} 126 //} 123 127 return registerPatientModel; 124 128 } openmrs-modules/registration/web/src/org/openmrs/module/registration/web/controller/RegistrationFormController.java
r4904 r5147 57 57 @Override 58 58 protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object object, BindException exceptions) throws Exception { 59 //HttpSession httpSession = request.getSession();60 61 59 return new ModelAndView(new RedirectView(getSuccessView())); 62 60 }