RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:9:30-18:00
你可能遇到了下面的问题
关闭右侧工具栏
LESSON I - Introduction - Your First Struts App
  • 作者:xiaoxiao
  • 发表时间:2020-12-23 10:55
  • 来源:未知

The application you are going to create mimics entering an employee into a database. The user will be required to enter an employee's name and age. Concepts introduced in Lesson I: Setting up your environment Data Transfer Object ActionForm web.xml struts-config.xml ApplicationResources.properties BeanUtils Tag usage The steps (see left menu) in this lesson will walk you through building all of the necessary components for this small application. If you want to download the complete application you can do so. (You should be able to plop this war file into your application server webapps directory and it should work fine). Download rr_lesson_1 application.war Begin lesson now by clicking START.

LESSON I - 1 - Install Tomcat

Download and install the latest stable version of Tomcat: You can download Tomcat here: http://jakarta.apache.org/site/binindex.cgi Setting up Tomcat is not difficult but is out of the scope of this tutorial. (Most of these basic tutorials should run fine on Tomcat versions 4.0.x and above or any other decent application server). NEXT >

LESSON I - 2 - Create Application Directory

Create the web application directory: Create the directory "rr_lesson_1"in the {tomcat}/webapps/ directory (where {tomcat} equals the root directory of your Tomcat installation). The following directory structure should look like: webapps | | rr_lesson_1 | | --- WEB-INF | |--- classes | | | --- net | | | -- reumann |--- lib | --- src | --- net | -- reumann

< PREV ???? NEXT >

?

LESSON I - 3 - Add Struts Files

Download & Install Struts: Download the latest version of Struts here: http://www.apache.org/dist/jakarta/struts/binaries/ (binary version)The lesson assumes you are are using Struts 1.1. The directory structure at the time you are reading this may be different than the above binary you download. (If you can not seem to find the files you need, you can just use the files that come with the download of this lesson application in the war file). After downloading your Struts archive, extract it into a directory of your choosing (preferably outside of the entire Tomcat directory). Copy .tld files from struts into rr_lesson_1 application: Go to the {StrutsDirectory}/contrib/struts-el/lib directory and copy the following .tld files into the rr_lesson_1/WEB-INF directory:

c.tld struts-bean-el.tld struts-html-el.tld struts-logic-el.tld