Servlet.service() for servlet [jsp] in context with path [/LyExample] threw exception错误

Servlet.service() for servlet [jsp] in context with path [/LyExample] threw exception [/liuyan.jsp (line: 17, column: 41) The JSP specification requires that an attribute name is preceded by whitespace] with root cause
org.apache.jasper.JasperException: /liuyan.jsp (line: 17, column: 41) The JSP specification requires that an attribute name is preceded by whitespace
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>留言板</title>
</head>
<body bgcolor="e3e3e3">
<s:form action="add" meth="post" theme="simple">
<table border="11">
<caption>填写留言信息</caption>
<tr>
<td>留言标题</td>
<td><s:textfield name="ly.title"/></td>
</tr>
<tr>
<td>留言内容</td>
<td><s:textarea name="ly.content"rows="5"cols="35"/></td>这里有问题 [/liuyan.jsp (line: 17, column: 41

</tr>
</table>
<input type="submit"value="提交">
<input type="reset"value="重置">
</s:form>
</body>
</html>
原因是没有空格改成
<td><s:textarea name="ly.content" rows="5" cols="35"/></td>

猜你喜欢

转载自blog.csdn.net/v_nbsp/article/details/80396086