Then you won't have the right file extension.

Dmitry Y. Shyshkin wrote:
Make jsp page that will return file content.

pageThatReturnFile.jsp

<%@ page contentType="..." %>
<f:view>
   <h:outputText value="#{...}" escape="false"/>
</f:view>

And simply provide link to this page.
I have a link on a facelets page which I want to users to be able to click and download a text file (with it's own extension such as .csv). The contents of this text file is simply the contents of a String property in a jsf bean.

I'm not sure how to go about doing the above, I'm not even sure if it's possible using JSF. Any ideas?

Regards,
Eurig


--

Fugro Robertson Limited      Telephone: +44+ (0)1492 581811
Tyn-y-coed Site              Fax: +44+ (0)1492 583416
Llanrhos
Llandudno
North Wales
UK   LL30 1SA

General Email: [EMAIL PROTECTED]

World Wide Website: www.fugro-robertson.com

********************************************************************
* This email may contain  confidential and  privileged information *
* intended solely for the individual or organisation to whom it is *
* addressed. If the reader is not the  intended  addressee, or the *
* employee  or agent responsible  to deliver  it to the addressee, *
* you are hereby notified that any  dissemination, distribution or *
* copying is strictly prohibited.  If you have received this email *
* in error, please notify the  sender and either destroy the email *
* or return it to [EMAIL PROTECTED]                         *
* Please note this email is not intended to create legal relations.*
********************************************************************

Reply via email to