[jboss-user] [JBoss Seam] - Re: Simplest <s:fileUpload> usage

yuwono do-not-reply at jboss.com
Mon Apr 23 03:27:33 EDT 2007


Hello petemuir,

I've tried the SFSB version too, no error but still the same. Can U help?

package myapp;
  | 
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | 
  | import org.jboss.seam.annotations.Begin;
  | import org.jboss.seam.annotations.Destroy;
  | import org.jboss.seam.annotations.End;
  | import org.jboss.seam.annotations.Name;
  | 
  | @Stateful
  | @Name("admin")
  | public class Admin implements AdminI {
  | 	private byte[] uploadedFile;
  | 	
  | 	public void setUploadedFile(byte[] uploadedFile)
  | 	{
  | 		this.uploadedFile = uploadedFile;
  | 	}
  | 	
  | 	public byte[] getUploadedFile()
  | 	{
  | 		return uploadedFile;
  | 	}
  | 	
  | 	@Begin
  | 	public void start()
  | 	{
  | 		System.out.println("Start conversation");
  | 	}
  | 	
  | 	@End
  | 	public void parse() throws Exception
  | 	{
  | 		if(uploadedFile != null)
  | 			System.out.println("size = " + uploadedFile.length);
  | 		else
  | 			System.out.println("picture is null");
  | 	}
  | 	
  | 	@Destroy @Remove
  | 	public void destroy() {}
  | }

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

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



More information about the jboss-user mailing list