|
 |
pro_jsp thread: Error in JSP
Message #1 by asitha ranjan <asitha_ranjan@y...> on Tue, 6 Feb 2001 02:43:54 -0800 (PST)
|
|
<%
catchItems = cart.getItems(); // calling getitsm
which is defined in the bean &
//agin holding in another vector
iRows = catchItems.size(); //cheking the size of the
vector
int i;
System.out.println("Showing items in vector"
+iRows); //showing items in the vector
System.out.println(" the capacity is "
+catchItems.capacity());
// For Loop Started to featch from the vector
for(i=0;i<iRows;i++)
{
System.out.println("the value is here 0");
// taking that vector of vectors values type cast
again vector & holding in enumaration
vEnum
((Vector)catchItems.elementAt(i)).elements();
System.out.println("the values is here 1");
try{
// start of while looop
while(vEnum.hasMoreElements())
{
// heare i want the values to get from enumartion
taking each { Note: Single} value in string or int
// puting or formation in down td or tr
System.out.println(" how do u do");
// if u add quantity order 4 times all the values
with qa in eachn row one by one should display 4
times
s_firstvalue=(String)vEnum.nextElement().toString();
out.println(s_firstvalue); // just to
check,outputing
//out.println(items[0]);
%>
</BIG></SMALL></SMALL></TD>
<TD align=left bgColor=#ffff97
vAlign=center><SMALL><SMALL><BIG>
<%
it's gving error here
s_secondvalue
=(String)vEnum.nextElement().toString();
what do to retrive sinle value from enumaration
so that i ca display where ever i want
//System.out.println(" U stupid doit propp" +
s_secondvalue);
//out.println(items[1]);
%>
thanx
ranjan
|
|
 |