3 Replies Latest reply on Mar 2, 2007 1:20 PM by AdamalX2

    HTTPService sending params

    AdamalX2
      I'm trying to submit some data over the HTTPService object to a struts2 action class. The method I'm trying to use is as follows:

      <mx:HTTPService id="myRequest" url="save.action">
      <mx:request xmlns="">
      <user.id>{userId.text}</user.id>
      <user.username>{username.text}</user.username>
      <user.password>{password.text}</user.password>
      <user.email>{email.text}</user.email>
      </mx:request>
      </mx:HTTPService>

      Of course it doesn't like the "user.username" convention which struts2 uses to submit an object. I'm trying to built a little test flex app as a proof of concept for our existing webapp. The html for a given input box would look like this <input type="text" name="user.username" />.

      Is there anyway to do this other than changing the myRequest.url by adding the parameters manually?