SHH整合 报404错误
shh整合的,访问Action的时候报404 错误不知道是那错误了,搞了一上午了,都没搞定,那位帮帮忙,非常感谢。
test.jsp页面
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
</head>
<body>
This is my JSP page. <br>
<a href="empAction!list">Action.List连接</a>
</body>
</html>
Struts.xml文件
<struts>
<constant name="struts.devMode" value="true"></constant>
<constant name="struts.objectFactory"
value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
<package name="struts2springhibernate" extends="struts-default" namespace="/">
<action name="empAction" class="empAction">
<result>/test.jsp</result>
<result name="LIST">/listEmp.jsp</result>
</action>
</package>
</struts>
application.xml文件(配置的action)
<bean id="empAction" class="com.ambow.action.EmpAction">
<property name="empService" ref="empService"></property>
</bean>
报404 错误 不知道怎么搞的 ,急救啊 ...