Try this:
The Upload is a Tapestry Component.  It expects a method with the signature 
like below.
HTML:
                <tr>
                        <td width="150">
                        Filename
                        </td>
                        <td>
                        <input type="file" jwcid="@Upload" 
file="ognl:page.visit.currentState.certFile" size="30"/>&nbsp*
                        </td>
                </tr>

This is probably done as part of button submit, like upload.
        errorMessage = null;
        if (certFile != null && certFile.getSize() > 0)
        {
            InputStream stream = certFile.getStream();
// process the stream...
        }

This is the method Tapestry will call:
    public void setCertFile(IUploadFile certFile)
    {
        this.certFile = certFile;
    }


hth,

Mark


Name: Mark J. Stang
Title: Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-----Original Message-----
From: Peter Dawn [mailto:[EMAIL PROTECTED]
Sent: Thu 9/7/2006 6:34 PM
To: tapestry-user@jakarta.apache.org
Subject: Form upload and download
 
guys,

i have been trying to implement a page upload and download
functionality within my webapp.

the upload example in tap3 doc seems to be incompelete. can somebody
provide the page file content for that example. i am getting an
ExpressBinding [UploadPage listener.formSubmit] error.

any help pls.

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


Reply via email to