org.apache.jasper.JasperException: /stu_login.jsp(30,2) The s:form tag declares that it accepts dynamic attributes but does not implement the required interface
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:802)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
。。。。。
HTML code
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'stu_login.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<s:form action="stu_login" method="post" namespace="/stu">
<s:textfield name="student.name" label="用户名" />
<s:textfield name="student.stu_no" label="密 码" />
<s:submit />
<s:reset />
</s:form>
</body>
</html>
请求热心人给指点
昨天晚上还好好的,今天用就悲剧了,服务器也重启过了,myeclipse也重启过了
难道我s:form标签真的用错了吗???
default.properties 说错了
org.apache.jasper.JasperException: /stu_login.jsp(30,2) The s:form tag declares that it accepts
struts 标签错误 , 仔细更改
<s:form action="stu_login" method="post" namespace="/stu">
我一般不是这样写的,改为<s:form action="stu/stu_login.action" method="post">试试
不是标签错了,是struts-tags.tld 的版本不对