Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Send file to a path

Thread view: 
Meendar - 20 May 2007 07:43 GMT
Hi,

I am using jasper reports for reporting and i am sending the file as
attachment to the client, please see the below code for more detail,

I just need to save in a particular folder in client location, how can
it be possible.

response.setContentType("application/pdf");
response.addHeader("Content-Disposition","attachment;
filename=StaffRemReport" +".pdf");
exporter = new JRPdfExporter();
exporter.setParameter(JRPdfExporterParameter.JASPER_PRINT,jasperPrint);
exporter.setParameter(JRPdfExporterParameter.OUTPUT_STREAM,response.getOutputStream()

Thanks in Advance;
Andrew Thompson - 20 May 2007 08:21 GMT
...
> I am using jasper reports for reporting and i am sending the file as
> attachment to the client, ...
>
>I just need to save in a particular folder in client location, how can
>it be possible.

Is that a question?  Note the addition of '?' marks
my words as a question.

It is not practical if you are sending the file as an
attachment, the user gets to choose where, and
even if, they will download it.

For more control on the client side, you might allow
access to the documents via a trusted applet or web
start application, and use that to save the PDF to a
specific location.

Why do you feel the need to force the user to save a
PDF in a particular place?

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Lew - 20 May 2007 15:06 GMT
> ..
>> I am using jasper reports for reporting and i am sending the file as
[quoted text clipped - 17 lines]
> Why do you feel the need to force the user to save a
> PDF in a particular place?

For that matter, what assurance do you have that the target directory even
exists on a user system?  Or can exist?

Signature

Lew

Meendar - 21 May 2007 04:22 GMT
> > ..
> >> I am using jasper reports for reporting and i am sending the file as
[quoted text clipped - 25 lines]
>
> - Show quoted text -

Since file is the report , it is the customer's requirements to make
it a specific folder and save all the reports to the folder.

However, thanks to all for the useful suggestions!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.