Hi Jim,

Be sure to set your request.method = URLRequestMethod.POST and assign your 
URLVariables to the data property of your URLRequest and then pass that to 
navigateToURL(...).

On the server, you can access these name/value pairs as request parameters 
(HttpServletRequest#getParameterMap()).

Using navigateToURL() is the right way to do this.

Seth

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
schneiderjim
Sent: Thursday, August 28, 2008 10:02 AM
To: [email protected]
Subject: [flexcoders] Re: Where is URLRequest data on server side


Bump.

--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, 
"schneiderjim" <[EMAIL PROTECTED]> wrote:
>
> I'm using URLRequest and navigateToUrl to invoke a server side (java
> servlet) reporting function (returns PDF in new browser window). To
> get it to work quickly, i just attached HTTP parameters to the URL and
> grabbed them from the HTTPServletRequest on the server. However, I
> believe we are now hitting the limit on the "query string", and I'd
> rather not do this anyway.
>
> I've looked at the URLVariables and the data property and that seemed
> like what I should do, but on the server, I'm not sure where I would
> grab that data in my servlet. Does that come through the InputStream
> somehow?
>
> Would HTTPService be better (noting that I need to pop the resulting
> PDF into a new window)?
>
> Any pointers to docs or samples would be appreciated.
>
> Thx,
>
> Jim
>

Reply via email to