请教:我的这个structs 应用系统中,有错误:Invalid path /testOracle was requested
===================================================================
地址栏输入
http://localhost:4040/testOracle.jsp
打开该页面中的一超连接:
http://localhost:4040/testOracle.do?forward=bdgk
出现下面的错误:
type Status report
message Invalid path /testOracle was requested
description The request sent by the client was syntactically incorrect (Invalid path /testOracle was requested).
===================================================================
===================================================================
平台:windows 2000 pro + Apache Tomcat/5.0.12
===================================================================
===================================================================
testOracle.jsp 部分代码:
<a href="testOracle.do?forward=bdgk">testOracle.do?forward=bdgk</a>
===================================================================
===================================================================
struts-config.xml 部分代码:
<struts-config>
<form-beans/>
<global-forwards/>
<action-mappings>
<action path="/testOracle" type="com.cwbnig.TestOracle" parameter="forward"/>
</action-mappings>
<message-resources parameter="ApplicationResources"/>
</struts-config>
===================================================================
===================================================================
TestOracle.java代码:
package com.cwbnig;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.apache.struts.actions.DispatchAction;
public class TestOracle extends DispatchAction
{
public TestOracle()
{
super();
}
public ActionForward bdgk(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception
{
System.out.println("============================");
return new ActionForward("createUser.jsp");
}
}
===================================================================
===================================================================
我认为的错误:尚不清楚。给出的提示,似乎是说找不到该页面,因为又是400错误。
请各位朋友赐教,谢谢。
===================================================================