how to upload a file on lan from a jsf application

i needed to send a pdf file, which is generate on tomcat server, to client who access my web application. How can i do it. Do any onw have any Idea...
[157 byte] By [Atiqea] at [2007-11-26 17:44:43]
# 1
This article might be useful: http://balusc.xs4all.nl/srv/dev-jep-pdf.htmlIf you don't/can't use IBM components (integrated in WebShpere) then you can use the MyFaces inputFileUpload component.
BalusCa at 2007-7-9 0:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Sorry, a mistake.
Ingmara at 2007-7-9 0:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Thanx Mr. BalusC. You are really very helpful.
Atiqea at 2007-7-9 0:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Now there is a problem. The problem is that i am generating pdf at runtime. These PDF files carry reports. User select type of report by clicking a button. Now i want that, the button will first generate pdf file and than open it in a new browser. How can i do that.
Atiqea at 2007-7-9 0:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

I don't get the problem?

public void downloadPdf() {

generatePdf(); // First generate PDF file.

...

// Proceed to download.

}

BalusCa at 2007-7-9 0:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Sorry it was really a silly question.The only problem is that i want to open it in a new window but it is opening in the same window. So how can i open it in a new window
Atiqea at 2007-7-9 0:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
Check the same article at the link I gave you in the 1st reply.
BalusCa at 2007-7-9 0:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
I have already checked it. But the difference is that i want to use commandButton instead of outputLink. And it donot have target property.
Atiqea at 2007-7-9 0:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 9

I'am using the technics described in

http://forum.java.sun.com/thread.jspa?threadID=5130404

and

http://forum.java.sun.com/thread.jspa?threadID=5128921

In particular my button for displaying existing documents in a new window looks like

<ui:button

action="#{MyBean.buttonDocumentShow_action}"

binding="#{MyBean.buttonDocumentShow}"

id="buttonDocumentShow"

onClick="this.form.target = '_blank'; window.setTimeout('document.getElementById(\'' + this.form.id + '\').target = null;', 50);"

text="#{akt.button_show}"/>

Ingmara at 2007-7-9 0:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...