毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> java技术 >> 正文

struts2报错form tag declares that it accepts dynamic

更新时间:2012-7-20:  来源:毕业论文

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 的版本不对

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©lwfree.com 六维论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。