Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-643

nameLayout.jsp Error with duplicate variable 'status' preventing patient entry and admin tasks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

      The error received is:

      ERROR - errorhandler_jsp._jspService(72) |2010-02-02 14:36:43,187| Error on page /openmrs/WEB-INF/view/admin/patients/newPatientForm.jsp
      javax.servlet.jsp.JspException: org.apache.jasper.JasperException: Unable to compile class for JSP:
      
      An error occurred at line: 200 in the jsp file: /WEB-INF/view/portlets/nameLayout.jsp
      Duplicate local variable status
      197:
              <input type="hidden" name="_$\{status.expression\}"/>
      198:
              <input type="checkbox" name="$\{status.expression\}"
      199:
                         <c:if test="$\{status.value == true\}">checked="checked"</c:if>
      
      200:
                         onClick="toggleLayer('<spring:bind path="personNameId">voidReasonRow-$\{status.value\}</spring:bind>'); if (voidedBoxClicked) voidedBoxClicked(this); "
      201:
              />
      202:
      </spring:bind>
      


      Potential fix: move the inner <spring:bind> out of the encompassing <spring:bind>

        Attachments

          Activity

            People

            Assignee:
            sy Sy Haas [X] (Inactive)
            Reporter:
            sy Sy Haas [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: