This is a RE-POST since I haven't had any response.

> Any suggestions welcomed...And appreciated!
> 
> The problem is that I have been unable to print each element of a Vector
> (passed from a servlet) to
> a new line in the List box Component of my Applet.
> 
> i.e the Vector comes out as ONE line (where each element is seperated by
> a comma:
> 
> [rec1, rec2, rec3,...]
> 
> should be
> 
> rec1
> rec2
> rec3
> .
> .
> .
> 
> Servlet Code:
> 
> //idxbr is a Buffered Reader passed to a FileReader Object
> 
>         while ( (record=idxbr.readLine()) != null )
>                 {
>                         recCount++;
>                         //add to Vector
>                         vectorToSend.addElement(record);
>                 }
> 
> the Vector then gets passed to the Applet ->> [Servlet -> (my Vector) ->
> Applet]
> 
> Applet Code:
>                 try
>                 {
>                         for (Enumeration e = aservletDataVector.elements() ;
> e.hasMoreElements() ;) {
>                         lstResults.add((String) e.nextElement());
>                 }
> 
> The lstRestults  a List Component.
> 
> ------------------------------------------------------------
> To subscribe:    [EMAIL PROTECTED]
> To unsubscribe:  [EMAIL PROTECTED]
> Problems?:       [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to