Since the ProcessUploadAction puts the FileUploadBean in REQUEST scope (the default), you would do something like this:
Code:
public Event processFile(RequestContext context) throws Exception {
FileUploadBean fub=(FileUploadBean)context.getRequestScope().getAttribute("file");
byte[] fileData=fub.getFile();
... //process file data
return success();
}
You would then need to invoke this processFile() method from an action state, something like this:
Code:
<action-state id="processFile">
<action bean="upload.process"/>
<transition on="success" to="..."/>
</action-state>