【发布时间】:2014-06-18 11:18:34
【问题描述】:
我在弹簧标签表单输入中有一些问题。
如果我使用<form:input>..会有错误显示
java.io.IOException: JspException when evaluating the body 但如果我使用 html 标签,它就无法连接到数据库。
<form:form method="POST" action="/sampling/insert"
modelAttribute="sampling">
<div class="form-row control-group row-fluid">
<label class="control-label span3" name="populasi" for="normal-field">Population</label>
<div class="controls span9">
<form:input path="populasi" type="text" id="normal-field"
class="row-fluid" />
</div>
</div>
<div class="form-row control-group row-fluid">
<label class="control-label span3" for="normal-field">Error
Rate</label>
<div class="controls span9">
<form:input path="tKesalahan" name="tKesalahan" type="text"
id="normal-field" class="row-fluid" />
</div>
</div>
<input type="submit" class="btn btn-success" rel="tooltip"
data-placement="top" value="Submit" />
</form:form>
【问题讨论】:
-
请发布完整的异常跟踪
-
HTTP 状态 500 - 内部服务器错误类型异常报告消息内部服务器错误描述服务器遇到内部错误,阻止它完成此请求。异常 java.io.IOException: JspException when evaluation the body note 异常的完整堆栈跟踪及其根本原因可在 GlassFish Server Open Source Edition 4.0 日志中找到。 GlassFish Server 开源版 4.0
-
您在 .jps 中导入 spring 框架 JSP 标签库,例如 springframework.org/tags"%> springframework.org/tags/form"%>
-
是的,我已经输入了,但仍然收到错误消息
-
我从未使用过 GlassFish Server,它的日志中有什么内容?好像对JSP不太了解。
jsp-api.jar在它的库中吗?