在用struts2 写一个小的web程序的时候,jsp页面是这样的:
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
输入要求代数和的两个数字
/s:textfield
/s:textfield
/s:submit
/s:form
struts.xml的配置文件是这样的:
/pages/positive.jsp
/pages/negative.jsp
用tomcat 6 运行的时候出现了这样的错误:
type:Status report
message :/FirstWeb/sum
description: The requested resource (/FirstWeb/sum) is not available.
我的jsp中的form action的名字和 config中的action名字一样 而且class路径完全正确,为什么总是说The requested resource (/FirstWeb/sum) is not available。新手请勿见笑。谢谢!