Utilize Flex And Java Servlet To Implement File Upload

6,445 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
6,445
On SlideShare
0
From Embeds
0
Number of Embeds
89
Actions
Shares
0
Downloads
134
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Utilize Flex And Java Servlet To Implement File Upload

  1. 1. Utilize Flex and Java Servlet to Implement File Upload<br />Albert Guo<br />junyuo@gmail.com<br />
  2. 2. Use Case<br />Architecture<br />Storyboard<br />Flex files Implementation<br />FileUploadServletImplemetation<br />Agenda<br />
  3. 3. Use Case<br />
  4. 4. Architecture<br />
  5. 5. Architecture<br />
  6. 6. Bridge between Java and Flex<br />
  7. 7. The RemoteObject protocol is the fastest communication method for data services that Flex offers.<br />The class gives you access to back-end classes through AMF encoding. This binary protocol uses Java classes directly to provide data to Flex. <br />The RemoteObject component uses HTTP to transport binary ActionScript over the communication channel.<br />RemoteObject Protocol<br />
  8. 8. RemoteObject Protocol<br />
  9. 9. RemoteObject Protocol<br />Mxml files<br />Servlet<br />commons fileUpload<br />
  10. 10. Sequence Diagram<br />
  11. 11. Storyboard<br />
  12. 12. Storyboard<br />Click “File” and select “Open”<br />
  13. 13. Storyboard – cont.<br />System will launch this popup window<br />Click “Upload File” button<br />
  14. 14. Storyboard – cont.<br />Choose one xml file<br />
  15. 15. Storyboard – cont.<br />System will show this confirmation message, <br />it will start to upload after you click “Yes” option.<br />
  16. 16. Storyboard – cont.<br />Close window as user <br />click this button<br />System will show upload progress in this area.<br />
  17. 17. Flex files Implementation<br />
  18. 18. Flex files Implementation<br />
  19. 19. Flex files Implementation – cont.<br />
  20. 20. Flex files Implementation – cont.<br />
  21. 21. Flex files Implementation – cont.<br />
  22. 22. Flex files Implementation – cont.<br />
  23. 23. Flex files Implementation – cont.<br />
  24. 24. Flex files Implementation – cont.<br />
  25. 25. FileUploadServletImplemetation<br />
  26. 26. FileUploadServletImplemetation<br />
  27. 27. FileUploadServletImplemetation– cont.<br />
  28. 28. FileUploadServletImplemetation – cont.<br />
  29. 29. Web.xml<br />Register <servlet> and <servlet-mapping> to web.xml<br />

×