louhaim 2004年12月24日
用eclipse3.0生成struts格式的jsp页面时,报如下错误,代码如下。。请指教!!!急!!!
jsp文件:

<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-template" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-nested" prefix="nested" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />

<title>LoginJsp.jsp</title>


</head>

<body>
<html:form action="" method="post" focus="login">
<table border="0">
<tr>
<td>Login:</td>
<td><html:text property="name" /></td>
</tr>
<tr>
<td>Password:</td>
<td><html:password property="pass" /></td>
</tr>
<tr>
<td colspan="2" align="center"><html:submit /></td>
</tr>
</table>
</html:form>
</body>
</html:html>

web.xml文件:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<!-- Copyright (c) 2002 by ObjectLearn. All Rights Reserved. -->
<web-app>

<!-- Remove the comments below to define a servlet. -->

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

<!-- <servlet> -->

<!-- <servlet-name>MyServlet</servlet-name> -->

<!-- <servlet-class>examples.MyServlet</servlet-class> -->

<!-- <init-param> -->

<!-- <param-name>myparam</param-name> -->

<!-- <param-value>12345</param-value> -->

<!-- </init-param> -->

<!-- </servlet> -->

<!-- -->

<!-- -->

<!-- <servlet-mapping> -->

<!-- <servlet-name>MyServlet</servlet-name> -->

<!-- <url-pattern>/mine/*</url-pattern> -->

<!-- </servlet-mapping> -->

<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-template</taglib-uri>
<taglib-location>/WEB-INF/struts-template.tld</taglib-location>
</taglib>
</web-app>

错误提示:

The method _jspx_meth_html_base_0(JspTag, PageContext) in the type LoginJsp_jsp is not applicable for the arguments (HtmlTag, PageContext)
The method _jspx_meth_html_form_0(JspTag, PageContext) in the type LoginJsp_jsp is not applicable for the arguments (HtmlTag, PageContext)
The method _jspx_meth_html_password_0(JspTag, PageContext) in the type LoginJsp_jsp is not applicable for the arguments (FormTag, PageContext)
The method _jspx_meth_html_submit_0(JspTag, PageContext) in the type LoginJsp_jsp is not applicable for the arguments (FormTag, PageContext)
The method _jspx_meth_html_text_0(JspTag, PageContext) in the type LoginJsp_jsp is not applicable for the arguments (FormTag, PageContext)
...全文
46 点赞 收藏 1
写回复
1 条回复

还没有回复,快来抢沙发~

发动态
发帖子
Eclipse
创建于2007-09-28

3.1w+

社区成员

4.9w+

社区内容

Java Eclipse
社区公告
暂无公告