• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Flex 3 : How to recive data in JSP submitted in MXML

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Need some help in Flex 3 .
I am using HTTPService to send data to JSP .

The following is my code inside MXML :




Now please tell me inside jsp page how can i retrive this paramObj and its properties data .

Waiting for yor responses .please help
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same way you process any HTTP request to a Servlet.

From the Adobe documentation for HTTPService:

send () method

public function send(parameters:Object = null):AsyncToken


Executes an HTTPService request. The parameters are optional, but if specified should be an Object containing name-value pairs or an XML object depending on the contentType.

Parameters parameters:Object (default = null) — An Object containing name-value pairs or an XML object, depending on the content type for service requests.


Returns AsyncToken — An object representing the asynchronous completion token. It is the same object available in the result or fault event's token property


 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Paul .

You mean should i use :


 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Gathering parameters is a long way :I am not able to access my jsp also .Please help






Any ideas .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your JSP will only run that JavaScript if the HTML it generates is rendered in the browser. You are submitting an HTTP request, not forwarding the user away from your FLEX application.

Write a generic Servlet that logs requests and the parameters in that request and test HttpService with this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic