Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dear All, Could you please guide me how i will solve this code

 
sumanta panda
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);
<%
}
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Please go back and change your post to add a more meaningful subject by clicking the .

Also, please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic