ognl.NoSuchPropertyException

该异常是因为在表单中的属性设置错误:

<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"


你可能感兴趣的:(ognl.NoSuchPropertyException)