Oh, I see you said you're using LPS 3.4, I don't know if the rawdata option
was
implemented at that point. You may need to move up to a more recent LPS, or
use another method to get the rawdata (such as making a low level Flash
sendAndLoad or XMLHTTPRequest call)


On Fri, Jun 19, 2009 at 3:36 PM, Henry Minsky <[email protected]>wrote:

> You should be able to use a LzDataset to make a POST request, and then to
> grab the raw data when it returns.
>
> Which runtime are you running your app in?
>
> Here's an example
>
> <canvas width="100%" height="80%" debug="true">
>   <debug  fontsize="12"/>
>
>   <dataset proxied="false" name="csv" src="http:mydata.csv"
> querytype="post" request="true" ondata="canvas.showdata()"/>
>
>   <method name="showdata">
>     Debug.write(csv.rawdata);
>   </method>
>
>
> </canvas>
>
>
> Note, there is a bug in the proxy server for nonXML data, it will throw an
> error in
> the server and therefore won't return the raw data, so you need to set
> proxied=false
> on the dataset before making the request.
>
> On Fri, Jun 19, 2009 at 2:38 PM, jgo <[email protected]> wrote:
>
>>
>> I have a servlet that generates a CSV file and I need to call it from
>> within
>> Laszlo.  My first thought is that I'll use LzBrowser.loadURL to open a new
>> browser window and POST a request to it.  Unfortunately, I don't see any
>> way
>> to make LzBrowser.loadURL use POST.  I cannot use GET because the data
>> passed to the servlet is too large.
>>
>> Are there any other options for doing this that I'm missing?
>>
>> Laszlo 3.4
>> Tomcat 6
>> Java 1.6
>> --
>> View this message in context:
>> http://www.nabble.com/how-do-I-post-a-request-to-a-CSV-generating-servlet-from-within-Laszlo--tp24116357p24116357.html
>> Sent from the OpenLaszlo - Dev mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Henry Minsky
> Software Architect
> [email protected]
>
>
>


-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to