wood burning stoves 2.0*
The moose likes Flex and the fly likes Flex 3 : How to recive data in JSP submitted in MXML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Flex 3 : How to recive data in JSP submitted in MXML" Watch "Flex 3 : How to recive data in JSP submitted in MXML" New topic
Author

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

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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

Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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



JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you Paul .

You mean should i use :


Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

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






Any ideas .
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Flex 3 : How to recive data in JSP submitted in MXML