I'm surprised no experts have answered this yet.  I believe most folks get the 
source from the collection and call toXMLString:

 

XML_Grupos.source.toXMLString()

 

Not sure if you can wrap it in {} or not.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL 
PROTECTED]
Sent: Thursday, June 07, 2007 7:13 PM
To: [email protected]
Subject: [flexcoders] I need to pass an XMLCollection as a parameter to a JSP 
or Servlet

 

Esteemed fellow listers:

I need to pass an XMLCollection as a parameter to a JSP or Servlet

I have used a Datagrid to organize the information , and I need to pass the new 
data in the DataGrid to a JSP or Servlet.

<mx:XMLListCollection id="XML_Grupos" ...../> // Has the data from the DataGrid
                                                 

<mx:HTTPService id="serviceJSP" url="Diagrama.jsp" resultFormat="e4x" 
showBusyCursor="true" 
    fault="Alert.show(event.fault.faultString), 'Error'" 
result="Alert.show(event.toString())">
    <mx:request>
        <quien>flex</quien>
        <Grupos>{XML_Grupos}</Grupos> 
    </mx:request>
</mx:HTTPService>


A button which calls serviceJSP.send() is used to send the data

The parameter "quien" is received without any problem by the JSP

But the parameter "XML_Groups," I can't receive or work with the data.

The communication with the JSP is working OK, but the Array String[] "Grupos" 
in the JSP does not contain the information sent by Flex.

I need to do this with HTTPService because I don't want to use FDS because of 
the license (because the client has a 2-processor server), and because I also 
don't want to buy FDS.

I'm coming to you all because I couldn't find anything about this in the Adobe 
docs.

Thanks...





Pablo Dario Ingelhorn
Ingelhorn Sistemas
(6303) Toay  - La Pampa - Argentina 






-- 
Pablo Dario Ingelhorn
Ingelhorn Sistemas
Teléfonos: 02954-498469 // celular:02954-15513545
Calle Gaviota Nº4881 esquina Misto Nº323
(6303) Toay  - La Pampa - Argentina 
 
P.D.: (claves para vivir bien)
Romanos 10:9 "Que si confesares con tu boca que Jesús es el Señor, y creyeres 
en tu corazón que Dios le levanto de los muertos, serás salvo."
Juan 14:6 "(Jesús nos dice..) Yo soy el camino y la verdad y la vida, nadie 
viene al padre sino es por mí."
3era.de Juan 2 "(Dios nos dice..) Amado, Yo deseo que tu seas prosperado en 
todas las cosas, y que tengas salud, así como prospera tu alma."
Juan 10:10 "(Jesús nos dice..) ...Yo he venido para que tengan vida y para que 
la tengan en abundancia."
 

Reply via email to