my dog learned polymorphism*
The moose likes JSP and the fly likes Dear All, Could you please guide me how i will solve this code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Dear All, Could you please guide me how i will solve this code" Watch "Dear All, Could you please guide me how i will solve this code" New topic
Author

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

sumanta panda
Ranch Hand

Joined: Jun 23, 2008
Posts: 224
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

Joined: Jan 10, 2002
Posts: 60752
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Dear All, Could you please guide me how i will solve this code
 
Similar Threads
How to enable checkbox when checked in other checkbox dynamically
How can i add the 2 dimension matrix data and dispaly all the numbers.
How can i add the 2 dimension matrix data and dispaly all the numbers.
How i will display Total Value for all the page
Please rectify my syntax error in jsp