Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call servlets in Flex

 
udara liyanage
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a servlets in which doPost() and doGet() does not output a XML.
how can I call that servlet and populate the data in a datagrid of Flex mxml file???
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11944
212
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is something I haven't tried, so you may have to experiment a bit.

The dataGrid is populated from a dataProvider. One possible dataProvider is the HTTPService. The relevant parameters would be:
  • contentType="application/x-www-form-urlencoded|application/xml"
  • resultFormat="object|array|xml|e4x|flashvars|text"


  • Since you can specify that the resultFormat is text, you should be able to use that.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic