先决条件:tomcat已经安装(需要jdk),eclipse已经安装。
Step1 下载eclipse用于支持struts的插件
GEF(Graphical Editing Framework)
Eclipse HTML Editor 用于预览jsp
截止到本文的时间,下载链接是http://sourceforge.jp/projects/amateras/downloads/48175/tk.eclipse.plugin.htmleditor_2.0.7.jar
Struts IDE 用于提供struts支持
截止到本文的时间,下载链接是http://sourceforge.jp/projects/amateras/downloads/48176/tk.eclipse.plugin.struts_2.0.7.jar/
Step2 熟悉配置文件
sturts configure
Step3 写一个hello world
3.1 添加一个ActionForm
3.2 添加一个Action
3.3 添加一个jsp
3.4 添加ActionMapping