web.xml
部份:
struts2
org.apache.struts2.dispatcher.FilterDispatcher
struts2
/*
struts.xml
/st.jsp
/two.jsp
Hello.java
package pkone;
import com.opensymphony.xwork2.ActionSupport;
//
public class Hello extends ActionSupport{
/**
- */ private static final long serialVersionUID = 1L; //org.apache.struts2.dispatcher.FilterDispatcher d = new org.apache.struts2.dispatcher.FilterDispatcher(); public String execute() throws Exception { System.out.println("langzis++!!!!!!!!!!"); return "success"; //return SUCCESS; //return "error"; } }
http://127.0.0.1/test/he/hello.action 来来去去都是404
http://127.0.0.1/test/webroot/ ~~却能正常访问