Hi Kartik,

I think that what Kartick was trying to explain is that instead of creating
the file in the application server and trying to get ot from your
application, you should do is to directly write the response to the servlet
outputStream using HttpResponse's getOutputStream() method. Don't forget to
first set the MIME type in the response header. The following example was
found on google and can maybe help you on that
http://www.cise.ufl.edu/~otopsaka/CIS4301/ReportDemo/ReportFromServlet.html

Nicolas


On Thu, Nov 27, 2008 at 5:23 PM, kartik kudada <[EMAIL PROTECTED]>wrote:

> Hi.
> i found that server creates file in Application folder.
> and client reads in WWW folder  through GWT.getModuleBaseURL() method
> so how can we create file in WWW file.?
>
> On Wed, Nov 26, 2008 at 10:15 PM, avadh patel <[EMAIL PROTECTED]> wrote:
>
>> Kartick,
>>
>> I dont know much about jasperReport, but after you generate CSV file you
>> can simply redirect your browser's location to that file. I will do
>> something like make a request to server which will reply a CSV file with
>> proper MIME file tag so that browser will popup the download dialog. I dont
>> have any clue how to generate a new file on the Client side using javascript
>> or ajax.
>>
>> - Avadh
>>
>>
>> On Wed, Nov 26, 2008 at 10:09 AM, kartik kudada <[EMAIL PROTECTED]>wrote:
>>
>>> hi,
>>>
>>> I want to do the follow action: *provide* a button, when user click the
>>> button, *GWT* page will generate the data from a table which in the
>>> page. Then the data will be formed in *CSV* format. What i hope to do is
>>> the page *can* pop up a *download* dialog and let user save the *CSV* *
>>> file* on the local disk.
>>>
>>> can jasperReport be useful  for that?
>>>
>>> thanks.
>>>
>>>
>>>
>>
>>
>>
>
> >
>


-- 
Nicolas CHALON
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to