第一web.xml中定义的servlet是告诉你了凡是以*.do结尾的请求都是由ActionServlet来处理
你说的action.xml应该是struts-config.xml这里的说明事告诉ActionServlet以editRegistration.do这个请求提交的用actionClass="org.apache.struts.webapp.example.EditRegistrationAction"这个class来处理。然后会在这个class告诉ActionServlet分配到那个jsp
你说的action.xml应该是struts-config.xml这里的说明事告诉ActionServlet以editRegistration.do这个请求提交的用actionClass="org.apache.struts.webapp.example.EditRegistrationAction"这个class来处理。然后会在这个class告诉ActionServlet分配到那个jsp
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货