Hi i m satwesh here come across a prob in java servlet applet communication..prob i s that i have two files i m reading at server side and ploting graph in applet using fillrect().i have 2 plot in two diff graph-line(with different color).but i use the loop in applet where i have 2 put the total no of data in two files respectively.but my prob is how v can get that total data of each file for generalization rather putting it directly a no.
for(int i=1043;i<=1873;i++){ g.setColor(Color.blue); g.fillRect(x+x_space,y_space+y_ range-y,1,1); } so in place of n and within two loop i should put general variable so that any updation of data file(increase/decrease)of total data..it ll take automatically.
SECOND--- how to pass two variables suppose count1 and count2 (i.e total no of data in two files respectively from servlet 2 applet?