HTTP Status 500 - Unable to compile class for JSP:Duplicate local variable xxx

简介: jsp页面中使用了: ,由于一个页面中引用的多个jsp页面中都包含该语句,那么就会出现以下错误: HTTP Status 500 - Unable to compile class for JSP:Duplicate local variable xxx 详细错误信息如下图...

jsp页面中使用了:<% String title = com.xunge.base.constant.PlatInfo.title; %> ,由于一个页面中引用的多个jsp页面中都包含该语句,那么就会出现以下错误:
HTTP Status 500 - Unable to compile class for JSP:Duplicate local variable xxx
详细错误信息如下图:
这里写图片描述
解决该问题的方法:
方法一:
保证引用的页面中只有一个页面存在类似语句;
方法二:
参考:jsp页面中JSTL/EL标签引用java后台静态static字段的方法总结

目录
相关文章
|
8月前
|
小程序
Failed to load local image resource Xx the server responded with a status of of 500 (HTTP/1.1 500)
Failed to load local image resource Xx the server responded with a status of of 500 (HTTP/1.1 500)
197 4
|
8月前
svn: E175002: Commit failed (details follow): svn: E175002: Unexpected HTTP status 502Bad Gateway on
svn: E175002: Commit failed (details follow): svn: E175002: Unexpected HTTP status 502Bad Gateway on
227 1
|
8月前
|
Java
JSP 教程 之 JSP HTTP 状态码 4
JSP教程讲解了HTTP状态码的使用,包括HTTP响应的结构和设置状态码的方法:通过HttpServletResponse的setStatus、sendRedirect及sendError。示例展示了如何发送407错误码,浏览器显示&quot;Need authentication!!!&quot;。
42 1
|
8月前
|
Java 数据安全/隐私保护
JSP 教程 之 JSP HTTP 状态码 2
JSP教程讲解了HTTP状态码,包括成功、重定向、客户端错误和服务器错误等类别。例如,200表示请求成功,404表示页面未找到,500表示服务器内部错误。这些状态码帮助理解HTTP通信过程中发生的问题。
72 2
|
9月前
|
Java 应用服务中间件
HTTP Status 404(The requested resource is not available)
HTTP Status 404(The requested resource is not available)
70 0
|
9月前
|
Java 应用服务中间件
解决tomcat启动报错:无法在web.xml或使用此应用程序部署的jar文件中解析绝对的url [http:java.sun.com/jsp/jstl/core]
解决tomcat启动报错:无法在web.xml或使用此应用程序部署的jar文件中解析绝对的url [http:java.sun.com/jsp/jstl/core]
1753 1
|
9月前
|
机器学习/深度学习 前端开发 JavaScript
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
167 0
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
|
9月前
|
应用服务中间件 Android开发
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
224 0
|
Java 应用服务中间件 数据库连接
[记录]java jsp web无法解析绝对uri:[http://java.sun.com/jsp/jstl/core]
[记录]java jsp web无法解析绝对uri:[http://java.sun.com/jsp/jstl/core]
168 0
|
Java 应用服务中间件 Linux
实战:第十三章:HTTP Status 500 – Internal Server Error(解决SpringBoot架构的Web项目部署到linux系统上访问出错)
实战:第十三章:HTTP Status 500 – Internal Server Error(解决SpringBoot架构的Web项目部署到linux系统上访问出错)
358 0