java 在第 51 行处理 JSP 页面 /index.jsp 时发生异常
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27287510/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
An exception occurred processing JSP page /index.jsp at line 51
提问by Balayesu Chilakalapudi
I am writing code for uploading file using struts. below is the error i am facing, org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 51
我正在编写使用 struts 上传文件的代码。下面是我面临的错误,org.apache.jasper.JasperException:在第 51 行处理 JSP 页面 /index.jsp 时发生异常
48: <img src="images/search.jpg" />
49: </div>
50: <div class="col-lg-6 col-md-6 col-lg-offset-1 col-md- offset-1 visible-lg visible-md">
51: <html:form action="/dataset">
52: Dataset <html:file styleClass="form-control" property="filepath" />
53: <html:submit value="submit" styleClass="btn btn-sm btn- info" />
54: </html:form>
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception creating bean of class com.aml.model.DatasetForm: {1}
Tell me the solution for this problem.
告诉我这个问题的解决方案。
采纳答案by Balayesu Chilakalapudi
Finally my program has successfully ran. The only mistake i done in my project is to include the mismatched java runtime environment in my project. I have installed jdk1.7 and i had used the 1.4 complient version of the facet in my eclipse ide. After changing the java compiler path to 1.4 version in my project properties i got my error cleared in my project. Thank you.
终于我的程序成功运行了。我在我的项目中犯的唯一错误是在我的项目中包含不匹配的 java 运行时环境。我已经安装了 jdk1.7,并且在我的 eclipse ide 中使用了 facet 的 1.4 兼容版本。在我的项目属性中将 java 编译器路径更改为 1.4 版本后,我在我的项目中清除了错误。谢谢你。