[jboss-user] [JBoss Seam] - Re: File upload to application folder

stu2 do-not-reply at jboss.com
Tue Jul 31 08:31:20 EDT 2007


The seam component lets you bind to a stream.  You can then do just what Shane suggests.  Here's how I use it:

    private InputStream uploadFileInputStream;
  | 

and

                <s:fileUpload id="catalog" data="#{catalogUpdate.uploadFileInputStream}"
  |                     fileName="#{catalogUpdate.uploadFileName}" />
  | 

In your bean, the stream is set to the file contents.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069140#4069140

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069140



More information about the jboss-user mailing list