Utilize Flex and Java Servlet to Implement File UploadAlbert Guojunyuo@gmail.com
Use CaseArchitectureStoryboardFlex files ImplementationFileUploadServletImplemetationAgenda
Use Case
Architecture
Architecture
Bridge between Java and Flex
The RemoteObject protocol is the fastest communication method for data services that Flex offers.The class gives you access to back-end classes through AMF encoding. This binary protocol uses Java classes directly to provide data to Flex. The RemoteObject component uses HTTP to transport binary ActionScript over the communication channel.RemoteObject Protocol
RemoteObject Protocol
RemoteObject ProtocolMxml filesServletcommons fileUpload
Sequence Diagram
Storyboard
StoryboardClick “File” and select “Open”
Storyboard – cont.System will launch this popup windowClick “Upload File” button
Storyboard – cont.Choose one xml file
Storyboard – cont.System will show this confirmation message, it will start to upload after you click “Yes” option.
Storyboard – cont.Close window as user click this buttonSystem will show upload progress in this area.
Flex files Implementation
Flex files Implementation
Flex files Implementation – cont.
Flex files Implementation – cont.
Flex files Implementation – cont.
Flex files Implementation – cont.
Flex files Implementation – cont.
Flex files Implementation – cont.
FileUploadServletImplemetation
FileUploadServletImplemetation
FileUploadServletImplemetation– cont.
FileUploadServletImplemetation – cont.
Web.xmlRegister <servlet> and <servlet-mapping> to web.xml

Utilize Flex And Java Servlet To Implement File Upload