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.

Matt




Paul McCulloch wrote:
Your action could read the log file, & store the contents into 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 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 when using tiles?


Andy - When you do something like this, just don't have the action that outputs the file use tiles. It won't hurt anything, and I'm pretty sure it is the only way to do it. (Of course now 5 people will come and prove me wrong :) )


Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to