I am getting a compilation error while trying to compile a jsp file
with nested ifs. Following the detailed error description:

/WSRInternals/Solicitation/index.jsp(417): scriptlet close brace '}'
unbalanced at line 417 which breaks scope '_base_service_scope_'
probably occurred due to an error in
/WSRInternals/Solicitation/index.jsp line 417:
<%}%>

Following is the relevant segment of my jsp code. Any idea why it is
happening?

<%if(sRep != null){%>

 


style="border-collapse: collapse" bordercolor="#111111" width="50%">







onClick="doSubmit('Prev')">




<%= (recordPointer+1)%> of <%= srHashT.size()%>
Records



onClick="doSubmit('Next')">




<%if(sRep.isInternal){%>


style="border-collapse: collapse" bordercolor="#111111" width="50%">




Internal Listing

<%}%>


style="border-collapse: collapse" bordercolor="#111111" width="50%">











External Listing

Ad: 




tabindex="12" onClick="doSubmit('Save')">



<%}%>