{$cfg_webname}
主页 > 外文翻译 > 计算机翻译 >

我的第一个Struts应用程序

来源:wenku163.com  资料编号:WK1635604 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9AWK1635604
资料介绍


附件1、外文资料翻译译文

我的第一个Struts应用程序

  在这篇文章中将指导你如何建立一个较好的Web应用程序。

  作者: Budi Kurniawan

  一般来说,说比做要容易得多,但是有句格言:"工作需要技巧,而不只是努力"。

  所以只要你一旦掌握了Struts框架结构,并用它来建立你自己的Web应用程序,你就会发现用Struts框架建立Web应用比以前的方法会更加迅速快捷。不幸的是,很多程序员找不到学习这个技术的好方法,还在走一些弯路。这篇文章,分为六个部分,它将引领正在使用servlet和JSP的程序员如何使用Struts结构快速的建立Web应用并掌握它。

  我将教你如何建立和配置Struts框架结构,同时通过一个简单的Web应用介绍它的详细规则和内部部署。我将在本篇文章的第二部分介绍这个Web应用的详细信息。

  在建立这个应用之前你必须很好的理解MVC设计模式在JAVA Web应用程序中的作用及工作方式。

  首先,你需要了解一些Struts结构的基础,即基于MVC模型的Model2设计模型。因为Model2模型在建立应用程序中有很好的灵活性,可扩展性以及可维护性,使得它成为应用程序开发者最理想的结构框架。由于Model2是被推荐的最简单的应有程序框架,所以,你想利用Struts框架快速容易的建立起这个Web应用程序,就必须要先了解Model2模型。来自Apache软件基金会的Apache's Jakarta Struts只是一个Web应用框架,我将通过这个例子帮助你理解并学会使用Struts框架。

  这个例子开始于一些Struts工具的使用,所以没有用到Struts的全部功能。例如,Struts框架中的标签库和其他的特殊功能都没有使用,而只使用了少数的几个文件,因此比较简单,容易理解和掌握。最后你将会在JSP页面中看到实现使用Bean的JAVA程序代码,但是这些会使实例变得复杂一些。



附件2:外文原文(复印件)

Your First Struts Application

Here's a tutorial to help you start building serious Web apps.

by Budi Kurniawan

The old adage, "Work smarter, not harder," is sometimes a lot easier to say than to practice. But once you master Struts-a framework for building serious Web applications-you can develop applications much more rapidly than you do now. Unfortunately, most programmers find the required learning curve steep. This article, the first of a six-part series, provides a quick start for those who've been working with servlets or JSP pages but are new to Struts.

I'll teach you how to install and configure Struts, and present the specification and deployment descriptor of a small application built within the framework. I'll discuss the application in more detail in the second part of this series.

An important note before you start: Building this application requires a good understanding of the Model-View-Controller (MVC) paradigm in a Java Web application. If this is a new concept to you, please read "Almost All JAVA Web Apps Need Model 2."

First, though, you need to understand a few basics about Struts. It uses the Model 2 architecture, which is based on the MVC design pattern. Model 2 applications are ideal for serious developers because they create programs that are flexible, extensible, and easy to maintain. Model 2 is the recommended architecture even for simple applications, so it's crucial to have
推荐资料