您的位置:首页 > 运维架构

ognl.NoSuchPropertyException

2014-06-05 14:29 381 查看
该异常是因为在表单中的属性设置错误:

<form action="addNews.shtml" method="post" >
新闻标题<input type="text" name="news.title" value="hahha" id="title"><br>
作者<input type="text" name="news.author"><br>
新闻正文<input type="text" name="content" id="content"><br>
责任编辑<input type="text" name="news.creater"><br>
新闻类型<input type="text" name="news.newsType"><br>
<input type="submit" value="submit">
<input type="reset" value="reset">
<input type="button" onclick="getVal()" value="获取正文">
</form>
比如把 name="news.newsType" 写成了 name="news.type"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: