Hi

I have a follow up question on this topic. I am also trying to download a
file (picture) in my aplication. I followed the instrcution on the Wiki page
but I have a content type problem. Eventhough I specify my content type to
"image/jpg" on the outputstrean, on the webpage I have still "text/html". 

Any suggestions?

Thanks
Daniel


Matthias Wessendorf-4 wrote:
> 
> the myfaces wiki is a great source of already answered questions :)
> 
> http://wiki.apache.org/myfaces/Sending_Files
> 
> 
> 
> On 10/25/06, ying lcs <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I am trying to write a Java web app using JSF.
>> I have a page which takes some info from user and it has a submit button.
>> If the validation of the info entered by user is correct, the web app
>> will send down a file.
>>
>> All the example I look at has navigation rule while navigate from one
>> jsp to another. How can I send down a file instead of loading another
>> jsp?
>>
>> Thank you.
>>
> 
> 
> -- 
> Matthias Wessendorf
> http://tinyurl.com/fmywh
> 
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Use-MyFaces-for-file-download-tf2511718.html#a7008406
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to