indigo版在线安装struts插件

作者: 计算机网络  发布:2019-10-21

Ubuntu下eclipse indigo版在线安装struts插件:

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns:xsi=""
xmlns="" xmlns:web=""
xsi:schemaLocation=" "
metadata-complete="true" version="3.0">
<description>
struts2
</description>
<display-name>struts2</display-name>
<!-- struts2 Filter -->
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext_*.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
</web-app>

1.打开eclipse,进入Help->Install new software...;

 

2.增加新站点,命名叫:mvc,地址:

 

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="" xmlns="" xmlns:web="" xsi:schemaLocation=" " 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://www.linuxidc.com/Linux/2012-05/61317.htm

HelloWorld2.zip下载:

无偿下载地址在

客户名与密码都是www.linuxidc.com

切切实实下载目录在 /二〇一二年龄资历料/3月/三日/Ubuntu下Eclipse indigo版在线安装struts插件/

图片 1

本文由今晚开什么码发布于计算机网络,转载请注明出处:indigo版在线安装struts插件

关键词: