Ubuntu下eclipse indigo版在线安装struts插件
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu下eclipse indigo版在线安装struts插件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Ubuntu下eclipse indigo版在線安裝struts插件:
1.打開eclipse,進入Help->Install new software...;
2.添加新站點,命名為:mvc,地址:http://mvcwebproject.sourceforge.net/update/;
3.添加站點后搜索到列表中有:Alveole Studio MVC Web Project項,打勾選中,next下去執行在線安裝,根據網速決定安裝進度,完成后重啟eclipse;
4.新建項目:
? 1)先創建一個Dynamic Web Project,命名為fweb;
? 2)進入file->new->other...->web選中Alveole Studio MVC Web Project后next;
? 3)在Enter or select the parent folder里選擇列表里的fweb;
? 4)file name輸入:struts.aswp,然后next直到finish,fweb項目自動生成struts代碼框架;
? 5)web.xml配置:
======================================================================
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
? <display-name>fweb</display-name>
? <filter>
? ?? ?<filter-name>org.apache.struts2.dispatcher.FilterDispatcher</filter-name>
? ?? ?<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
? </filter>
? <filter-mapping>
? ?? ?<filter-name>org.apache.struts2.dispatcher.FilterDispatcher</filter-name>
? ?? ?<url-pattern>*.action</url-pattern>
? </filter-mapping>
? <welcome-file-list>
??? <welcome-file>index.jsp</welcome-file>
? </welcome-file-list>
</web-app>
============================================================================
? 6)struts.aswp圖形化配置,建立MVC關系;
5.具體操作教程參考地址:
? http://wenku.baidu.com/view/fe540f175f0e7cd184253640.html
? http://mvcwebproject.sourceforge.net/tutorial.html
? http://mvcwebproject.sourceforge.net/tutorials/HelloWorld2.zip
?
?
?? ?
1.打開eclipse,進入Help->Install new software...;
2.添加新站點,命名為:mvc,地址:http://mvcwebproject.sourceforge.net/update/;
3.添加站點后搜索到列表中有:Alveole Studio MVC Web Project項,打勾選中,next下去執行在線安裝,根據網速決定安裝進度,完成后重啟eclipse;
4.新建項目:
? 1)先創建一個Dynamic Web Project,命名為fweb;
? 2)進入file->new->other...->web選中Alveole Studio MVC Web Project后next;
? 3)在Enter or select the parent folder里選擇列表里的fweb;
? 4)file name輸入:struts.aswp,然后next直到finish,fweb項目自動生成struts代碼框架;
? 5)web.xml配置:
======================================================================
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
? <display-name>fweb</display-name>
? <filter>
? ?? ?<filter-name>org.apache.struts2.dispatcher.FilterDispatcher</filter-name>
? ?? ?<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
? </filter>
? <filter-mapping>
? ?? ?<filter-name>org.apache.struts2.dispatcher.FilterDispatcher</filter-name>
? ?? ?<url-pattern>*.action</url-pattern>
? </filter-mapping>
? <welcome-file-list>
??? <welcome-file>index.jsp</welcome-file>
? </welcome-file-list>
</web-app>
============================================================================
? 6)struts.aswp圖形化配置,建立MVC關系;
5.具體操作教程參考地址:
? http://wenku.baidu.com/view/fe540f175f0e7cd184253640.html
? http://mvcwebproject.sourceforge.net/tutorial.html
? http://mvcwebproject.sourceforge.net/tutorials/HelloWorld2.zip
?
?
?? ?
總結
以上是生活随笔為你收集整理的Ubuntu下eclipse indigo版在线安装struts插件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ubuntu下利用JDK的Keytool
- 下一篇: Ubuntu下eclipse indig