[SECURITY][ADVICE] File download issue

2014-11-07 Thread Lukasz Lenart
of the pdf [1] http://blog.spiderlabs.com/2014/10/reflected-file-download-the-white-paper.html [2] https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf Regards -- Łukasz + 48 606 323 122 http://ww

RE: struts2 problem when file download dialog is closed

2012-04-11 Thread svetlana . roslyakova
returns cashed results from the previous AJAX call. Thanks, Lana. From: adam pinder To: Date: 04/11/2012 01:46 PM Subject:RE: struts2 problem when file download dialog is closed is the user "cancelling" still sending a request to the server and hence you are

RE: struts2 problem when file download dialog is closed

2012-04-11 Thread adam pinder
nce then leave it. > To: user@struts.apache.org > Subject: Re: struts2 problem when file download dialog is closed > From: svetlana.roslyak...@bnymellon.com > Date: Wed, 11 Apr 2012 09:51:39 -0400 > > Venkata, > > I use Struts2 2.2.1.1 version. > I've changed th

Re: struts2 problem when file download dialog is closed

2012-04-11 Thread svetlana . roslyakova
call, it does not go to the server, but instead uses the cashed response. Thanks, Lana. From: vEnkaTa mohAna rAo SriperumbUdUru To: Struts Users Mailing List Date: 04/10/2012 09:19 PM Subject:Re: struts2 problem when file download dialog is closed You are using older

Re: struts2 problem when file download dialog is closed

2012-04-10 Thread vEnkaTa mohAna rAo SriperumbUdUru
You are using older version Struts2.x and change filter to StrutsPrepareAndExecute Filter. On Wed, Apr 11, 2012 at 1:59 AM, wrote: > Hi, > > I've created a struts2 application that creates text file and displays the > file download dialog for the user to open or save it. >

Re: struts2 problem when file download dialog is closed

2012-04-10 Thread Muneer Malik
when the dialog closes, are you still calling the action ? Best, Muneer Malik On Apr 10, 2012, at 3:29 PM, svetlana.roslyak...@bnymellon.com wrote: > Hi, > > I've created a struts2 application that creates text file and displays the > file download dialog for the user t

struts2 problem when file download dialog is closed

2012-04-10 Thread svetlana . roslyakova
Hi, I've created a struts2 application that creates text file and displays the file download dialog for the user to open or save it. It works fine if the user opens or saves it, but if the user closes the file download dialog the program logs the following error: Servlet failed with Exce

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Eric Lentz
> I was working with no issue until a month ago for over a year and suddenly it has stopped working I get that. Best thing to do would be to view the headers from a client that can do so. There are plug-ins in Firefox that will allow that I believe. I think you'll find that something is amiss w

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
Thank you very much for your reply. Your suggestion worked though in IE the file is opened in a new tab as opposed to save but it works on Firefox. - Original Message - From: Eric Lentz To: Struts Users Mailing List Cc: Sent: Friday, January 13, 2012 11:22:02 AM Subject: Re: File

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
)); in the action as opposed to configuration. I was working with no issue until a month ago for over a year and suddenly it has stopped working - Original Message - From: Eric Lentz To: Struts Users Mailing List Cc: Sent: Friday, January 13, 2012 11:22:02 AM Subject: Re: File dow

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Eric Lentz
> Not setting the Content-disposition is header, makes the firefox to prompt for the download but it uses the action for filename ie Ticket.action. > Has anyone faced a similar issue or can provide a hint on how to fix the issue Yep, saw this problem just this week. I ran the request through s

File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
Hi everyone: I have an application in Struts 2.1.8 that has been running for the past two years with no issue. However; recently I have noticed the all file downloads on Firefox and Chrome fails while IE is okay. I know it has something with content-dispositon but  I have not been able to fix i

Re: File Download with multiple files. Design question

2010-11-21 Thread Paweł Wielgus
Hi Roger, below is Off-Topic as for struts. > That's what I'm doing, but the StreamResult requires an InputStream > which forces the intermediate step of creating a temporary file I'm not so sure, i haven't done it myself, but there were a discussion here some time ago pointing out that one can c

Re: File Download with multiple files. Design question

2010-11-20 Thread Roger Varley
On Sat, 2010-11-20 at 09:41 +0100, Paweł Wielgus wrote: > Hi All, > read about streamResult (I assume You use struts2), and also there is > no need for next action in chain, user can simply check as many files > as he wants and click download what will call downloadAction that will > simply return

Re: File Download with multiple files. Design question

2010-11-20 Thread Li Ying
e can send only one response. If you want to download file and then show next page, it need 2 responses. I think this is impossible mission for one http request. If you send a file download response, then the browser will download it, and don't refresh the page, which means the current displayed

Re: File Download with multiple files. Design question

2010-11-20 Thread Paweł Wielgus
ce the first option would be best as I don't need the temp > file, it was my first solution to providing the StreamResult with an input > stream that would download multiple files. > > Regards > > -- > View this message in context: > http://old.nabble.com/File-Download-with

Re: File Download with multiple files. Design question

2010-11-19 Thread RogerV
an input stream that would download multiple files. Regards -- View this message in context: http://old.nabble.com/File-Download-with-multiple-files.-Design-question-tp30256036p30258354.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: File Download with multiple files. Design question

2010-11-19 Thread Li Ying
display next > so that I can safely clean up? Any other suggested approaches would be > welome. > > Regards > > -- > View this message in context: > http://old.nabble.com/File-Download-with-multiple-fil

Re: File Download with multiple files. Design question

2010-11-19 Thread Rahul Mohan
. Regards -- View this message in context: http://old.nabble.com/File-Download-with-multiple-files.-Design-question-tp30256036p30256036.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-

File Download with multiple files. Design question

2010-11-19 Thread RogerV
ext: http://old.nabble.com/File-Download-with-multiple-files.-Design-question-tp30256036p30256036.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additiona

RE: file download issue

2009-10-19 Thread Tarun Chowdhry
ds, Tarun -Original Message- From: Paweł Wielgus [mailto:poulw...@gmail.com] Sent: Monday, October 19, 2009 4:30 PM To: Struts Users Mailing List Subject: Re: file download issue Hi Tarun, double check that this InputStream is valid, i have such exception when i'm downloading not e

Re: file download issue

2009-10-19 Thread Paweł Wielgus
Hi Tarun, double check that this InputStream is valid, i have such exception when i'm downloading not existing files. Best greetings, Paweł Wielgus. 2009/10/19 Tarun Chowdhry : > Hi, > Getting the following exception when trying to call the FileUpload code: > Action class: > import java.io.*; >

file download issue

2009-10-19 Thread Tarun Chowdhry
Hi, Getting the following exception when trying to call the FileUpload code: Action class: import java.io.*; import com.opensymphony.xwork2.ActionSupport; import com.opensymphony.xwork2.Action; import org.apache.struts2.ServletActionContext; public class extends ActionSupport{ priv

RE: file download problem in application server

2009-03-27 Thread Shannon, Andrew
9 10:38 AM To: Struts Users Mailing List Subject: RE: file download problem in application server I assume your blob Class is Serializable? http://www.hibernate.org/hib_docs/v3/reference/en/html_single/ ? Martin __ Disclaimer and confidentiality note

RE: file download problem in application server

2009-03-26 Thread Martin Gainty
for the content provided. > Subject: RE: file download problem in application server > Date: Thu, 26 Mar 2009 08:20:19 -0400 > From: andrewshan...@pqa.com > To: user@struts.apache.org > > I was half wrong. It was a quirk for runnnig in OC4J but the Blob was > being mang

RE: file download problem in application server

2009-03-26 Thread Shannon, Andrew
in struts 2 is a snap. So thanks for that. -Original Message- Sent: Wednesday, March 25, 2009 9:26 AM To: user@struts.apache.org Subject: file download problem in application server I posted this question on the OTN - OC4J list a second ago, but am hoping someone here might have some

file download problem in application server

2009-03-25 Thread Shannon, Andrew
I posted this question on the OTN - OC4J list a second ago, but am hoping someone here might have some insight. "I have a web app running in an OC4J stand alone 10.1.3.3 and am having a problem with downloading files over http. Its a struts2 app whose file downloading impl is easy to use and st

RE: Problem with file download.

2009-02-27 Thread Struts Two
/09, Security Management wrote: > From: Security Management > Subject: RE: Problem with file download. > To: "'Struts Users Mailing List'" > Received: Thursday, February 26, 2009, 8:17 PM > Here's what I've used, note the contentDisposition. &

RE: Problem with file download.

2009-02-26 Thread Security Management
s.apache.org Subject: Problem with file download. I have followed serveral examples but still have an issue downloading a file using an input stream. In IE7 when I try the download with text/plain context type, the text is rendered in the html page. When I change the contentType a file dialog fold

Problem with file download.

2009-02-26 Thread jfputnam
this message in context: http://www.nabble.com/Problem-with-file-download.-tp22232119p22232119.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For addit

Re: [S2] File download save dialog

2008-07-07 Thread Jeromy Evans
Struts Two wrote: Even afterI extended the StreamResult to be able to set the content-desposition dynamically, Internet explorer would open the file in a separate browser while firefox was prompting with the save/open dialog. However, the issue was fixed when I directly got the httpresponse

Re: [S2] File download save dialog

2008-07-07 Thread Wes Wannemacher
owever, the issue was fixed when I directly got the httpresponse and set the > header there. > > > - Original Message > From: Wes Wannemacher <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Sent: Monday, July 7, 2008 4:19:02 PM > Subject: Re: [S2]

Re: [S2] File download save dialog

2008-07-07 Thread Struts Two
there. - Original Message From: Wes Wannemacher <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, July 7, 2008 4:19:02 PM Subject: Re: [S2] File download save dialog Although Chris's solution works, I've always been partial to setting content-disposition t

Re: [S2] File download save dialog

2008-07-07 Thread Wes Wannemacher
downloads a file from db2 database. However; > > when the download occurs, the file is displayed in the browser. I would > > like to have the user prompted with the save/open dialog. I was wondering > > what I am missing here. Below are my confi

Re: [S2] File download save dialog

2008-07-07 Thread Struts Two
. - Original Message From: Chris Pratt <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, July 7, 2008 2:31:08 PM Subject: Re: [S2] File download save dialog One way is to set the content type of the downloaded item to something the browser doesn't know how to handle i

Re: [S2] File download save dialog

2008-07-07 Thread Chris Pratt
m db2 database. However; when > the download occurs, the file is displayed in the browser. I would like to > have the user prompted with the save/open dialog. I was wondering what I am > missing here. Below are my configuration and action class for the file >

[S2] File download save dialog

2008-07-07 Thread Struts Two
file download:             application/octet-stream         public class TicketFileDownload extends ActionSupport { [EMAIL PROTECTED]  TicketLocal ticketLocal;  private long attachmentId;    private InputStream inputStream;  public long getAttachmentId

Re: File download problem in IE7 (struts 2) [SOLVED]

2008-06-05 Thread Gustavo Felisberto
In the documentation[1] for the Stream result type we have a: filename="contacts.xls" This was causing the problem. A simple change to: attachment;filename="contacts.xls" solved the issue. Hope this may help someone out there Gustavo [1] http://struts.apache.org/2.0.11.1/docs/stream-result.h

Re: [S2] File Download Example in showcase doesn't work with contentType application/x-download using IE

2007-08-30 Thread Joe Lam
; something useful. > > The exception you quoted is unrelated and caused because you're writing > to the output stream within a JSP that's already doing so. That code is > better suited to its own servlet. > > Hope that helps, > regards, > Jeromy Evans > > J

Re: [S2] File Download Example in showcase doesn't work with contentType application/x-download using IE

2007-08-30 Thread Jeromy Evans
unrelated and caused because you're writing to the output stream within a JSP that's already doing so. That code is better suited to its own servlet. Hope that helps, regards, Jeromy Evans Joe Lam wrote: try to make a file download action without opening the file. I try the showcase fil

[S2] File Download Example in showcase doesn't work with contentType application/x-download using IE

2007-08-30 Thread Joe Lam
try to make a file download action without opening the file. I try the showcase file download example. change contentType to application/x-download in struts.xml <param name="contentType">application/x-download</param> with firefox it works fine. with IE, it still o

Re: File download problem

2007-08-28 Thread Dale Newfield
[EMAIL PROTECTED] wrote: I get the following error, when I try downloading files through the File download Struts2 application. I have given the Configuration detail and the Action class. Could someone take a look and let me know where this breaks? public InputStream getInputStream() throws

File download problem

2007-08-28 Thread Senthil_Kumar . Thangarathinam
Hello All, I get the following error, when I try downloading files through the File download Struts2 application. I have given the Configuration detail and the Action class. Could someone take a look and let me know where this breaks? Thank you, Senthil javax.servlet.ServletException

File download problem

2007-08-28 Thread Senthil_Kumar . Thangarathinam
Hello All, I get the following error, when I try downloading files through the File download Struts2 application. I have given the Configuration detail and the Action class. Could someone take a look and let me know where this breaks? Thank you, Senthil javax.servlet.ServletException

Re: showcase file download in jetty server

2007-05-23 Thread sudeepj2ee
Hi just refer show case example in that see whether the file download is working if its not jus conver back slashes to forward slashes. Pedro Herrera wrote: > > I have the same problem using jboss, how is your action writed ? > > > Herrera > > > > > sudeepj2e

Re: showcase file download in jetty server

2007-05-21 Thread sudeepj2ee
HI I have got the solution posted on the forum. just change the'\' slashes to '/'slashes.:) sudeepj2ee wrote: > > HI > > I am using jetty server and the zip file download part of showcase is not > working in the jetty its giving the following error-: >

Re: showcase file download in jetty server

2007-05-17 Thread Pedro Herrera
I have the same problem using jboss, how is your action writed ? Herrera sudeepj2ee wrote: > > HI > > I am using jetty server and the zip file download part of showcase is not > working in the jetty its giving the following error-: > > java.lang.IllegalArgumentExce

showcase file download in jetty server

2007-05-15 Thread sudeepj2ee
HI I am using jetty server and the zip file download part is not working in the jetty its giving the following error-: java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [inputStream] in the invocation stack. Check the tag specified for this action. at

Re: [S2] Error in "File Download" in struts-showcase application

2007-05-07 Thread Musachy Barroso
-- Original message - From: "Martin Gilday" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Date: Mon, 07 May 2007 15:03:12 +0100 Subject: Re: [S2] Error in "File Download" in struts-showcase application Just to confirm I have tried it on the SVN head and h

Re: [S2] Error in "File Download" in struts-showcase application

2007-05-07 Thread Martin Gilday
Date: Mon, 07 May 2007 15:03:12 +0100 Subject: Re: [S2] Error in "File Download" in struts-showcase application Just to confirm I have tried it on the SVN head and had the same error using Jetty. - Original message - From: "Struts2 Fan" <[EMAIL PROTECTED]> To: us

Re: [S2] Error in "File Download" in struts-showcase application

2007-05-07 Thread Martin Gilday
Just to confirm I have tried it on the SVN head and had the same error using Jetty. - Original message - From: "Struts2 Fan" <[EMAIL PROTECTED]> To: user@struts.apache.org Date: Mon, 7 May 2007 06:52:10 -0700 (PDT) Subject: Re: [S2] Error in "File Download" in s

Re: [S2] Error in "File Download" in struts-showcase application

2007-05-07 Thread Struts2 Fan
Ok I created the issue https://issues.apache.org/struts/browse/WW-1915 Musachy Barroso wrote: > > If you create an issue here: > > https://issues.apache.org/struts/ > > it probably will. Thanks for reporting it. > > musachy > > On 5/7/07, Struts2 Fan <[EMAIL PROTECTED]> wrote: >> >> >> Hi

Re: [S2] Error in "File Download" in struts-showcase application

2007-05-07 Thread Musachy Barroso
If you create an issue here: https://issues.apache.org/struts/ it probably will. Thanks for reporting it. musachy On 5/7/07, Struts2 Fan <[EMAIL PROTECTED]> wrote: Hi all, I checked out the struts2 source codes and run struts2-showcase app but /struts2-showcase/filedownload/download.action

[S2] Error in "File Download" in struts-showcase application

2007-05-07 Thread Struts2 Fan
Hi all, I checked out the struts2 source codes and run struts2-showcase app but /struts2-showcase/filedownload/download.action is not working. It gives the following error. Can not find a java.io.InputStream with the name [inputStream] in the invocation stack. Check the tag specified for this a

Re: [S2] Struts Showcase File Download

2007-03-21 Thread Brian Thompson
After looking in the *source code* of the Struts showcase, I got the idea to declare an action with a return type of "stream" and use a method like public InputStream retrieveImage() throws Exception { return ServletActionContext.getServletContext ().getResourceAsStream("images/403.jpg"); } How

[S2] Struts Showcase File Download

2007-03-21 Thread Brian Thompson
I'm trying to return a stream of binary data (like the image or .zip example on http://www.planetstruts.org/struts2-showcase/filedownload/index.jsp) from a Struts 2 action class, but I'm not sure how to configure my application to get Struts to write the data directly to the response without tryin

RE: file download without opening a window

2006-12-07 Thread George.Dinwiddie
sers Mailing List > Subject: Re: file download without opening a window > > > Thanks. > > How can I add a header without opening a new window or redirect? > > - Original Message - > From: <[EMAIL PROTECTED]> > To: > Sent: Wednesday, December 06,

RE: OT: file download without opening a window

2006-12-07 Thread mano dasanayake
Hi, As per my knowledge, what you have to do is opening an out stream from your action. Something like... response.setContentType("application/x-file-download"); response.setHeader( "Cont

Re: OT: file download without opening a window

2006-12-06 Thread Søren Blidorf
new window to open or a redirect off the page. Please let me know if I need to explain againg Br. Soren - Original Message - From: "Martin Gainty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 07, 2006 2:30 AM Subject: Re: OT: file download wit

Re: OT: file download without opening a window

2006-12-06 Thread Mitchell James
Can you restate what you want? It's not exactly clear what you are asking. -- James Mitchell 678.910.8017 On Dec 6, 2006, at 4:56 PM, Søren Blidorf wrote: Does anybody know how to make a form button, that starts downloading myFile.xml What I want is to make an onclick = "Save target

Re: file download without opening a window

2006-12-06 Thread Søren Blidorf
Thanks. How can I add a header without opening a new window or redirect? - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, December 06, 2006 11:02 PM Subject: RE: file download without opening a window add a header "Content-Disposition attachment; filename

RE: file download without opening a window

2006-12-06 Thread George.Dinwiddie
add a header "Content-Disposition attachment; filename=myFile.xml" using response.addHeader() > -Original Message- > From: Søren Blidorf [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 06, 2006 4:56 PM > To: Struts Users Mailing List > Subject: OT: file d

OT: file download without opening a window

2006-12-06 Thread Søren Blidorf
Does anybody know how to make a form button, that starts downloading myFile.xml What I want is to make an onclick = "Save target as" Med venlig hilsen Søren Blidorf Nolas Consulting Web: http://www.nolas.dk Mobil: +45 61676513

Re: File download

2006-03-08 Thread P Y
hav Bhargava a écrit : > > > > > > >Hi All, > > > > > > > >I have a JSP where if a link is clicked then a Save As dialog box is > > > >invoked. If the user chooses to save the file, then on the successful > > > >completion of the

Re: File download

2006-03-08 Thread Madhav Bhargava
vestigations. See HTTP rfc for informations. > > > > Madhav Bhargava a écrit : > > > > >Hi All, > > > > > >I have a JSP where if a link is clicked then a Save As dialog box is > > >invoked. If the user chooses to save the file, then on the successful

Re: File download

2006-03-08 Thread Madhav Bhargava
>invoked. If the user chooses to save the file, then on the successful > >completion of the file download i need to update a status in the > database. > >After the status is updated the page from which the Save As dialog box > was > >invoked has to be refreshed with the

Re: File download

2006-03-08 Thread David Delbecq
is >invoked. If the user chooses to save the file, then on the successful >completion of the file download i need to update a status in the database. >After the status is updated the page from which the Save As dialog box was >invoked has to be refreshed with the new status. >

File download

2006-03-08 Thread Madhav Bhargava
Hi All, I have a JSP where if a link is clicked then a Save As dialog box is invoked. If the user chooses to save the file, then on the successful completion of the file download i need to update a status in the database. After the status is updated the page from which the Save As dialog box was

Re: Re: file download problem

2006-01-19 Thread Dakota Jack
pg.photos.yahoo.com/ph//print_splash>to > get quality prints in your hands ASAP. > > > > -- Forwarded message -- > From: Dakota Jack <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Date: Wed, 18 Jan 2006 07:35:39 -0800 > Subject: Re: file do

Fwd: Re: file download problem

2006-01-18 Thread temp temp
I tried   content type as application/msword   but it did not help .Any other  ways to solve this problem? thanks & regards Note: forwarded message attached. Yahoo! Photos Got holiday prints? See all the ways to get quality prints in your hands ASAP.--- Begin Message --- Just a thought. I

Re: file download problem

2006-01-18 Thread Dakota Jack
Just a thought. Isn't there a specific content type for .doc documents? That might solve your problem.I looked it up. .doc documents are "application/msword". Try that and see what happens. I am actually building a list of all the extensions and their content types. Hope this helps. On 1/18/

file download problem

2006-01-18 Thread temp temp
I am using struts action class to download a file . Here is the action class public ActionForward execute(ActionMapping aActionMapping, ActionForm aActionForm, HttpServletRequest aHttpServletRequest, HttpServletResponse aHttpServletResponse) throws

Re: Sending file name containing unicode characters in http file download

2006-01-06 Thread Laurie Harper
List Subject: Sending file name containing unicode characters in http file download Hi All, I've an application which can be used for downloading file over web. Now if the file name contains Unicode characters which are not in iso-8859-1 range, the name appearing at the browser (in th

RE: Sending file name containing unicode characters in http file download

2006-01-05 Thread Daniel Blumenthal
O-URL-code.html Good luck! Daniel > -Original Message- > From: souravm [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 05, 2006 10:36 PM > To: Struts Users Mailing List > Subject: Sending file name containing unicode characters in > http file download > >

Sending file name containing unicode characters in http file download

2006-01-05 Thread souravm
bove Qs is yes, the what is the solution/work around for downloading a file having name with Unicode characters which are not in iso-8859-1 range in http file download ? Any input/pointer would be highly appreciated. Regards, Sourav CAUTION - Disclaimer * T

Re: Redirect after a file download

2005-12-21 Thread Denis Avdic
I was unclear I guess. No, the refresh happens after the action STARTS sending the file, at the beginning of the download. This solution works with a timeout on the second window.location. I was hoping I could do something else, perhaps forking control or something after the response has is sent,

Re: Redirect after a file download

2005-12-21 Thread Frank W. Zammetti
Does the refresh *have* to happen only *after* the download is complete? If so, I suspect your SOL. However, what you can do if that isn't important is to start the download via Javascript, and at the same time kick off the refresh. Do something like this: Download function download() { wind

Redirect after a file download

2005-12-21 Thread Denis Avdic
Hello, I have an application that enables a user to download a file and keeps stats on total downloads as well as last time anyone downloaded a file. My problem is that the client wants the download page refreshed after a file has been sent. Right now I have a forward that points back to the dow

Re: Tiles and file download

2004-11-26 Thread erh+struts
On Tue, Nov 23, 2004 at 09:43:19AM -0600, Matt Bathje wrote: > My only problem with doing it this way is it changes the mime-type of > the file sometimes, which makes it harder for users to download. > Depending on the userbase you may or may not have this problem. The problem with usin

Re: Tiles and file download

2004-11-25 Thread Dakota Jack
If you are going to do this, you might as well generalize it to: public class FileToString { public synchronized static String convert(File input) throws FileNotFoundException { String output = ""; String line = ""; StringBuffer content = new StringBuffer();

Re: Tiles and file download

2004-11-25 Thread andy wix
Hi, I have resolved this now. The action code is: File f = new File("test.log"); BufferedReader in = new BufferedReader(new FileReader(f)); String str; while ((str = in.readLine()) != null) { buf.append("\n" + str); } in.close(); request.setAttribute("FILE", buf.toString()); and the jsp code (not

Re: Tiles and file download

2004-11-24 Thread andy wix
Hi, Still can't get anything sensible to work. I've gone with the approach of setting a variable in scope for the 'body' tile jsp to output, as I have to use Tiles so that the user can still see the menu etc after the operation. My code is: File f = new File("C:/test/logs/test.txt"); StringBu

Re: Tiles and file download

2004-11-23 Thread Dakota Jack
use a file download. My last submission was a bit mixed up on this. So, there are three options: file download of log file. browser presentation of log file (Paul) streamed presentation of log file on the browser (Matt) I am not sure what the page code is for the streamed presentation of the log f

Re: Tiles and file download

2004-11-23 Thread Dakota Jack
As you no doubt see, Paul's solution is for viewing in the browser and Matt's is for downloading to the client. You can do both if you like. Just make the file in the browser per Paul the button for downloading the file to the client per Matt. You can have the button do a popup which then shows

Re: Tiles and file download

2004-11-23 Thread Matt Bathje
to a request scoped attribute. The contents of this attribute can then be displayed in the relevant tile. Paul -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 23 November 2004 14:40 To: Struts Users Mailing List Subject: Re: Tiles and file download andy wix wrote: Hi, I ha

RE: Tiles and file download

2004-11-23 Thread Paul McCulloch
To: Struts Users Mailing List > Subject: Re: Tiles and file download > > > andy wix wrote: > > Hi, > > > > I have a requirement to allow the user to view log files in > the main > > body tile when they click a certain menu item in the 'menu tile'.

Re: Tiles and file download

2004-11-23 Thread Matt Bathje
andy wix wrote: Hi, I have a requirement to allow the user to view log files in the main body tile when they click a certain menu item in the 'menu tile'. I see on the archives that the normal way to do this is to stream the file to the response and then return null from the action. What's the

Tiles and file download

2004-11-23 Thread andy wix
Hi, I have a requirement to allow the user to view log files in the main body tile when they click a certain menu item in the 'menu tile'. I see on the archives that the normal way to do this is to stream the file to the response and then return null from the action. What's the approach taken

Re: File Download

2004-09-22 Thread Martin Gainty
D]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 2004 4:59 AM Subject: RE: File Download Hi, One way to do this is to set a header named content-disposition with a value of attachment;filename=download.txt So the raw http header would look like this: content-disposition: attachment;filen

RE: File Download

2004-09-22 Thread Robert Shields
set the header is another story! Maybe use a servlet-mapping to map download.txt to a servlet and call response.addHeader from that servlet. Regards Rob -Original Message- From: Shailender Jain [mailto:[EMAIL PROTECTED] Sent: 22 September 2004 09:28 To: [EMAIL PROTECTED] Subject: File

File Download

2004-09-22 Thread Shailender Jain
Hi All, Sorry if this slightly offline from the topic. I want to give a download link on my browser to the user so that he can download a test file from the server and save it into his local machine . I have given a hyperlink to the user which points directly to the file (download.txt) But the

Re: How to Disable "open" button on "File Download" dialogue box....please urgent

2004-07-16 Thread Bryan Hunt
+1 Andrew Hill wrote: Try here: http://www.catb.org/~esr/faqs/smart-questions.html ganesh gadi wrote: Hi Friends, i'm very happy to tell u my problems and get answers. i need a solution how to disable "open" button on "File Download" dialog box.i want control on it. Pls d

Re: How to Disable "open" button on "File Download" dialogue box. ...please urgent

2004-07-16 Thread Craig McClanahan
gent" triggers negative emotional reactions (to say nothing of spam filters :-). You will generally get better results by omitting it. Craig -Original Message- From: ganesh gadi [mailto:[EMAIL PROTECTED] Sent: 16 July 2004 09:52 To: [EMAIL PROTECTED] Subject: How to Disable "open&

RE: How to Disable "open" button on "File Download" dialogue box....please urgent

2004-07-16 Thread Geeta Ramani
hey have to do. Again, no harshness intended, just thought you may like to know this for the future.. Regards, and good luck.. Geeta > -Original Message- > From: ganesh gadi [mailto:[EMAIL PROTECTED] > Sent: Friday, July 16, 2004 4:52 AM > To: [EMAIL PROTECTED] > Subj

Re: How to Disable "open" button on "File Download" dialogue box....please urgent

2004-07-16 Thread Andrew Hill
Try here: http://www.catb.org/~esr/faqs/smart-questions.html ganesh gadi wrote: Hi Friends, i'm very happy to tell u my problems and get answers. i need a solution how to disable "open" button on "File Download" dialog box.i want control on it. Pls don't say no so

RE: How to Disable "open" button on "File Download" dialogue box. ...please urgent

2004-07-16 Thread mike . raath
Or a system design? So that these last-minute issues aren't all urgent? -Original Message- From: McCormack, Chris [mailto:[EMAIL PROTECTED] Sent: 16 July 2004 11:19 To: Struts Users Mailing List Subject: RE: How to Disable "open" button on "File Download" dialo

RE: How to Disable "open" button on "File Download" dialogue box. ...please urgent

2004-07-16 Thread McCormack, Chris
Maybe a change of career or invest some time reading up the technologies that appear on your CV ? Just a thought -Original Message- From: ganesh gadi [mailto:[EMAIL PROTECTED] Sent: 16 July 2004 09:52 To: [EMAIL PROTECTED] Subject: How to Disable "open" button on &quo

RE: How to Disable "open" button on "File Download" dialogue box. ...please urgent

2004-07-16 Thread mike . raath
Ganesh, why do you always ask your question 3 times? And your questions are always urgent? -Original Message- From: ganesh gadi [mailto:[EMAIL PROTECTED] Sent: 16 July 2004 09:52 To: [EMAIL PROTECTED] Subject: How to Disable "open" button on "File Download" dialogue

Re: how to get control over "File Download" Dialogue Box ...Very urgent please

2004-07-16 Thread Emmanouil Batsis
Hi, ganesh gadi wrote: Hi Friends, i'm very happy to tell u my problems and get answers. I dont think you will get answers by sending the same email with three different subjects within four minutes. Manos - To unsubscribe, e-ma

How to Disable "open" button on "File Download" dialogue box....please urgent

2004-07-16 Thread ganesh gadi
Hi Friends, i'm very happy to tell u my problems and get answers. i need a solution how to disable "open" button on "File Download" dialog box.i want control on it. Pls don't say no solution.Bcox i saw that type of dialogue box...Now i require that feature. pls let

  1   2   >