• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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);
<%
}
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic