小编Ram*_*mis的帖子

Struts html标签不起作用

我只是尝试在带有struts提供标签的jsp页面中包含一个文本框.但它表现得很典型.

工作

<html:text property="name" value=""></html:text>

不工作

<html:text property="name"></html:text>
因此,没有财产'value',它不起作用.请帮帮我们.

注意:使用tomcat 6.0
bean,逻辑工作正常,在html中也大部分工作正常.无线电,textarea,文本是导致问题的一些.
JSP文件

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<html:text property="name"></html:text>
</body>
</html>

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception …
Run Code Online (Sandbox Code Playgroud)

struts-1

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

struts-1 ×1