Forgive me if I am on the wrong track here, I think I picked up this
thread in the middle... but I think I would answer:

> How are we suppose to supply the fileName?

By setting a response header:

response.setHeader("Content-Disposition", "inline;filename="foo.xyz");

MG

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Tuesday, March 18, 2008 9:48 AM
To: user@struts.apache.org
Subject: Re: Struts 1 return stream (documents)

The techniques shown in the earlier examples would work equally well in 
the byte stream example. How you determine the source of the data to 
send back to the browser is really up to you.

- configure it statically in struts-config.xml (as per the first two 
exxamples

- take it from a request parameter

- derive it from some other user or request data

L.

bhaarat Sharma wrote:
> Quick question
> 
> in all other examples on that page they show how the fileName is
> retrieved. But for Byte Array Example they do not mention anything
> regarding the fileName.
> 
> How are we suppose to supply the fileName?
> 
> 
> On Mon, Mar 17, 2008 at 10:41 PM, Dave Newton <[EMAIL PROTECTED]>
wrote:
>> --- bhaarat Sharma <[EMAIL PROTECTED]> wrote:
>>
>>> Thanks! I remember you helped me with similar problem in S2 as well
>>  I'm very good at using the work of others to make me look good ;)
>>
>>  Dave
>>
>>
>>
>>
>>
---------------------------------------------------------------------
>>  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]


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

Reply via email to