基于jsp的网上书店系统的设计英文翻译内容摘要:
Notes: The file controls which HTML form request maps to which ActionForm. Multiple requests can be mapped UserActionForm. UserActionForm can be mapped over multiple pages for things such as wizards. Action class The Action class is a wrapper around the business logic. The purpose of Action class is to translate the HttpServletRequest to the business logic. To use Action, subclass and overwrite the process() method. The ActionServlet (Command) passes the parameterized classes to ActionForm using the perform() method. Again, no more dreadful () calls. By the time the event gets here, the input form data (or HTML form data) has already been translated out of the request stream and into an ActionForm class. Error classes The UML diagram (Figure 6) also included ActionError and ActionErrors. ActionError encapsulates an individual error message. ActionErrors is a container of ActionError classes that the View can access using tags. ActionErrors is Struts way of keeping up with a list of errors.Figure 7. UML diagram of the relationship of the Command (ActionServlet) to the Model (Action) ActionMapping class An ining event is normally in the form of an HTTP request, which the servlet Container turns into an HttpServletRequest. The Controller looks at the ining event and dispatches the request to an Action class. The determines what Action class the Controller calls. The configuration information is translated into a set of ActionMapping, which are put into container of ActionMappings. (If you have not noticed it, classes that end with s are containers)The ActionMapping contains the knowledge of how a specific event maps to specific Actions. The ActionServlet (Command) passes the ActionMapping to the Action class via the perform() method. This allows Action to access the information to control flow. ActionMappings is a collection of ActionMapping objects. pros Use of JSP tag mechanism The tag feature promotes reusable code and abstracts Java code from the JSP file. This feature allows nice integration into JSPbased development tools that allow authoring with tags. Tag library Why reinvent the wheel, or a tag library? If you cannot find something you need in the library, contribute. In addition, Struts provides a starting point if you are learning JSP tag technology. Open source You have all the advantages of open source, such as being able to see the code and having everyone else using the library reviewing the code. Many eyes make for great code review. Sample MVC implementation Struts offers some insight if you want to create your own MVC implementation. Manage the problem space Divide and conquer is a nice way of solving the problem and making the problem manageable. Of course, the sword cuts both ways. The problem is more plex and needs more management. cons Youth Struts development is still in preliminary form. They are working toward releasing a version , but as with any version, it does not provide all the bells and whistles. Change The framework is undergoing a rapid amount of change. A great deal of change has occurred between Struts and . You may want to download the most current Struts nightly distributions, to avoid deprecated methods. In the last 6 months, I have seen the Struts library grow from 90K to over 270K. I had to modify my examples several times because of changes in Struts, and I am not going to guarantee my examples will work with the version of Struts you download. Correct level of abstraction Does Struts provide the correct level of abstraction? What is the proper level of abstraction for the page designer? That is the $64K question. Should we allow a page designer access to Java code in page development? Some frameworks like Velocity say no, and provide yet another language to learn for Web development. There is some validity to limiting Java code access in UI development. Most importantly, give a page designer a little bit of Java, and he will use a lot of Java. I saw this happen all the time in Microsoft ASP development. In ASP development, you were supposed to create COM objects and then write a little ASP script to glue it all together. Instead, the ASP developers would go crazy with ASP script. I would hear Why wait for a COM developer to create it when I can program it directly with VBScript? Struts helps limit the amount of Java code required in a JSP file via tag libraries. One such library is the Logic Tag, which manages conditional generation of output, but this does not prevent the UI developer from going nuts with Java code. Whatever type of framework you decide to use, you should understand the environment in which you are deploying and maintaining the framework. Of c。基于jsp的网上书店系统的设计英文翻译
相关推荐
2、四周有树且旁边有地下水的地方、能拉大昼夜温差,利于平菇菌丝生长。 种选择原则上是以出菇场所的温度等条件来选择品种,菌种有高温型、中温型、低温型和广温型几种类型。 夏季生产应选择高温型菌种,而且要求菌丝粗壮、生长势强:反之,易老化的不耐高温的菌种绝对不能用,否则将大大降低产量。 培袋的规格要缩小为了充分利用培养基,提高出菇率,避免高温“烧料”现象发生,要求栽培袋长度降至 4042径在
JDBC JDBC是 Java的开发者 —— Sun公司制定的 Java数据库连接( JavaDataBase Connectivity)技术的简称。 它是 Sun公司联合数据库开发商开发出来的独立于 DBMS的 API( Application Programming Interface,应用程序接口),它为 Java开发者使用各种数据库提供了统一的 API。 JDBC的功能和
采集与数据处理相互结合的日益紧密,形成数据采集与处理系统,可实现从数据采集、处理到控制的全部工作。 ( 4)数据采集过程一般都具有 “ 实时 ” 特性,实时 的标准是能满足实际需要;对于通用采集系统一般希望有尽可能高的速度,以满足更多的应用 环境。 ( 5)随着 电子 技术的发展,电路集成度的提高,数据采集系统的体积越来越小,可靠性越来越高,甚至出现了单片数据采集系统。 (
本 否 否 购买数量 BuyNumber 数字 否 否 注意输入格式 ( 5) assess 表:用来管理评价基本信息,字段包括:评价编号、用户名称、评级内容、评价时间。 结构如表 35 所示。 14 表 35 assess 表 属性名 存储代码 数据 类型 是否主键 允许空值 备注 评价编号 assessID 数字 是 否 自动 用户名称 UserName 文本 否 否 外键 评价内 容
1、敌被大量杀伤,害虫因失去自然控制和抗药性增强而猖獗,并带来环境污染和残毒等问题。 因此,推广生物防治,利用天敌控制害虫,尽量少用以至不用化学农药,把害虫的危害控制在允许水平之内,已成为人们的迫切要求。 但是,在生产实践中,完全不施用农药几乎是不可能的,尤其是在害虫大发生和严重危害的情况下,不使用化学农药就难以避免造成经济损失。 据估计,在防治稻田害虫中,化学农药所起的作用约占
owable类的 printStacktrace方法来获得堆栈结构的文本描叙。 现在,可以通过调用 getStackTrace方法来获得一个 StackTraceElement对象的数组,通过研究该数组,就可以分析程序运行情况。 例如: Throwable t = new Throwable ( )。 StackTraceElement[ ] frames = ( )。 For ( int i=