这是我在web.xml
文件中的配置
<listener>
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Run Code Online (Sandbox Code Playgroud)
这是配置 pom.xml
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>2.2.2</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
Run Code Online (Sandbox Code Playgroud)
它一直这样说:Can not find the tag library descriptor for "http://struts.apache.org/tags-tiles"
当我将taglib添加到布局中时:
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
Run Code Online (Sandbox Code Playgroud)
当我在服务器上运行时:
SEVERE: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
Run Code Online (Sandbox Code Playgroud)
我在这里错过了什么吗?
在我的WCF服务中,我有一个功能,例如:
bool ValidateLogin(string user, string password)
Run Code Online (Sandbox Code Playgroud)
在我在windows azure中托管它并将引用添加到我的Web应用程序后,该功能变为:
bool ValidateLogin(string user, string password, out int ValidateLoginResult, out bool ValidateLoginResultSpecified)
Run Code Online (Sandbox Code Playgroud)
有谁知道这两个参数是什么?我怎样才能阻止它在托管后添加?
当我们开发项目时,如果我们想要使用struts
或者tiles
或者spring
其他任何东西,我们必须导入一些jaf文件(进入项目构建路径或lib文件夹)
所以我想问,是否有任何网站/工具指定我们为每个目的需要哪些.jar文件,这样我就不必在项目中添加大量jar文件
如果这个问题无关紧要,我很抱歉.我只是不知道在哪里问:(
美好的一天^^