Dear All,
Could you please guide me how to resolve this bug.
Thanks a lot in Advance.
Regards
Sumanta
Errors are
'try' without 'catch' or 'finally'
try {
^
WEB4125:
An error occurred between lines: 655 and 659 in the
JSP file:
/bank/IMHoldSecurities.jsp
WEB4126: Generated
servlet error:
c:\project\sun\https-ITS\ClassCache\https-ITS\_jsps\_bank\_IMHoldSecurities_jsp.java:1077: 'else' without 'if'
else
^
c:\project\sun\https-ITS\ClassCache\https-ITS\_jsps\_bank\_IMHoldSecurities_jsp.java:1148: illegal start of type
} catch (Throwable t) {
^
c:\project\sun\https-ITS\ClassCache\https-ITS\_jsps\_bank\_IMHoldSecurities_jsp.java:1158: <identifier> expected
}
^
c:\project\sun\https-ITS\ClassCache\https-ITS\_jsps\_bank\_IMHoldSecurities_jsp.java:1160:
'class' or 'interface' expected
private static void _jspx_releaseTags(javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.tagext.Tag until) {
^
c:\project\sun\https-ITS\ClassCache\https-ITS\_jsps\_bank\_IMHoldSecurities_jsp.java:1169: 'class' or 'interface'
expected
}
^
c:\project\sun\https-ITS\ClassCache\https-ITS\_jsps\_bank\_IMHoldSecurities_jsp.java:1170: 'class' or 'interface' expected
^
8 errors
XYZ.jsp
<%
if(session.getValue("abc")!=null)
{
%>
BankLog.l("iNoOfRec : "+iNoOfRec);
for(int iCount=0;iCount < iNoOfRec;iCount++ )
{
int cmp = 0;int cmp_temp=0;int total=0;
cmp_temp=Integer.parseInt((
String)inVec.elementAt(3));
cmp=cmp+cmp_temp;
out.println("Data"+cmp);
%>
<TR >
<%
if (iCount==0)
{
%>
<TD align ="right"><INPUT TYPE="radio" id ="selOption" NAME="selOption" VALUE="<%=iCount%>" ONFOCUS="activateFields('<%=iCount%>');" CHECKED > </TD>
<%
}
else
{
%>
<TD align ="right"><INPUT TYPE="radio" id ="selOption" NAME="selOption" VALUE="<%=iCount%>" ONFOCUS="activateFields('<%=iCount%>');"> </TD>
<%
}//else closes
if (dbflag==0)
{
inVec= (Vector) vData.elementAt(iCount);
%>
<TD align ="right"><INPUT TYPE="text" maxlength ="6" size="6" NAME="CMP<%=iCount%>" class = "textNumericCell" DISABLED VALUE="<%=(String) inVec.elementAt(3)%>">
<INPUT TYPE="hidden" NAME="Agency<%=iCount%>" VALUE="E"></TD>
<% }
if (dbflag==1)
{
%>
<TD align ="right"><INPUT TYPE="text" maxlength ="12" size="12" NAME="ISIN<%=iCount%>" class = "textNumericCell" DISABLED VALUE="<%=(String)ISINCode.elementAt(iCount)%>"></TD>--> <INPUT TYPE="hidden" maxlength ="6" size="6" NAME="Symbol<%=iCount%>" class = "textNumericCell" VALUE="">
<% } %>
</TR>
<%
}//end of for loop
%>
}
<%! int total=0;%>
total=cmp+session.getValue("abc");
session.putValue("abc",total);
<%}
else{
%>
session.putValue("abc",total);
<%
}