This practice originated from the application of online electronic dictionary. The goal was completed by meteorlwj, elevenxl, and syani. The copyright of this article belongs to the above three people. I have no comments to reprint or modify this article.
This project mainly applies the following technologies:
Presentation Layer: Flex
Transition Layer: JSP + JavaBean
Underlying layer: EJB
Database: MySQL
This introduction will not involve the specific flex technology and EJB technology. I will introduce the use and interaction of the framework in this project (because there are too many code, only one example can be provided)
The interaction between flex and JSP is achieved through the data in httpservice and XML format.
1) Flex Project (httpservice application code ):
VaR serviceforaddnewarticle: httpservice = new httpservice ();
2) JSP processing:
3) JavaBean processing:
4) EJB processing: (remote interface is used)
The above is an example of the interface and implementation code in the EJB section. The specific code will be supplemented by elevenxl.
Conclusion: for this practice, I personally think this combination is an attempt, and the running result is basically successful, so there is no problem in data processing. I hope it will be helpful to my friends who are learning flex.