• Post Reply Bookmark Topic Watch Topic
  • New Topic

Urgent error while loading a jsp page

 
Bonkur K Reddy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
Actually my problem is while loading the JSP page i am getting runtime error.the senario is i am trying to load the data(data which i am getting from bean which is in a vector) into clientside array.
i am using JSP,DB2,WEBSPHERE
i am not getting the error every time but rarely.
Can any one know the solution.

Thanks in advance
Bk
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would be easier to help you if you provide us with more detailed information...
If you could post the exception you are getting or the code throwing the error, it would be useful.
 
Bonkur K Reddy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi this is some part of my code where actually the error is getting occured
<%Vector vCurrency = null;
ReviewOrderValueBean OrderCurrBean = null;

vCurrency = (Vector)request.getAttribute("vFetchCurrency");
try{
if(vCurrency != null){
if(!vCurrency.isEmpty()){
for(Enumeration enumvCurrency = vCurrency.elements();enumvCurrency.hasMoreElements() {
OrderCurrBean = (ReviewOrderValueBean)enumvCurrency.nextElement();
strCurrCode = null;
strCurrCode = OrderCurrBean.getCurrCode();
if(strCurrCode != null)
{%>
<script language="Javascript">

ArrCurrency[intCurrCou] ='<%=strCurrCode%>';
intCurrCou++;


</script>
<%}

}
}
}
}catch(Exception e){
CLogger.log(" HO0202", "Enumaration", e,
" An exception occurred while fetching the Currency Details",CLogger.ERROR);
}%>
//****************************//
In the load of the form the loop is getting skipped of with lodding some data into array
///this is the code which is getting displayed in the form (this is part of the code only)
----
-----
---
<script language="Javascript">

ArrCurrency[Number(intCurrCou)] ='BRL';
//intCurrCou++;
intCurrCou = Number(intCurrCou)+1;

</script>

<script language="Javascript">

ArrCurrency[Number(intCurrCou)] ='BSD';
//intCurrCou++;
intCurrCou = Number(intCurrCou)+1;

</script>

<script
----
-----
---
actually there are 183 records in the vector but in the loop it not loading all the 183 records into array.
i am getting this only in few instances only
thanks in advance
bk
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!