HTTP Status 500 - 问题

简介:

今天上班公司用JSP编写的网站碰到了点问题:点击内页时总是报错:

HTTP Status 500 -

.....

 

网上找了下:

这个网站是jsp的,tomcat服务器发生了错误
500——服务器产生内部错误 
关键字: http status
1**:请求收到,继续处理 
2**:操作成功收到,分析、接受 
3**:完成此请求必须进一步处理 
4**:请求包含一个错误语法或不能完成 
5**:服务器执行一个完全有效请求失败

<%@ page language="java" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

原来是最上面页面字符编码大小写问题:(xml中是严格区分大小写的)

解决办法:

<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

 

OK!解决了,虽然没有研究过JSP,但同样以后细节问题多注意!




      本文转自许琴 51CTO博客,原文链接:http://blog.51cto.com/xuqin/886595,如需转载请自行联系原作者



相关文章
|
12月前
|
机器学习/深度学习 前端开发 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
186 0
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
|
11月前
|
小程序
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)
330 4
|
11月前
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
281 1
|
12月前
|
Java 应用服务中间件
HTTP Status 404(The requested resource is not available)
HTTP Status 404(The requested resource is not available)
84 0
|
12月前
|
应用服务中间件 Android开发
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
267 0
|
Java 应用服务中间件 Maven
HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot-报错解决方法
HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot-报错解决方法
340 0
|
Java 应用服务中间件 Linux
实战:第十三章:HTTP Status 500 – Internal Server Error(解决SpringBoot架构的Web项目部署到linux系统上访问出错)
实战:第十三章:HTTP Status 500 – Internal Server Error(解决SpringBoot架构的Web项目部署到linux系统上访问出错)
373 0
|
SQL 关系型数据库 MySQL
【解决思路】HTTP Status 500 Type Exception ReportMessage Request processing failed; 【已解决】
经常测试的一个网页,突然报错500。前面也没有发生过,但突然报错,只能先改错了,不然都没法进入页面。为什么会调用到存在bug的语句,而以前没有发生这种情况?这一问题没能想清楚,只能归咎于编译器了。
503 0
【解决思路】HTTP Status 500 Type Exception ReportMessage Request processing failed; 【已解决】
|
SQL Java 应用服务中间件
ssm管理系统中出现HTTP Status 403-Forbidden .Access to the specified resource has been forbidden
ssm管理系统中出现HTTP Status 403-Forbidden .Access to the specified resource has been forbidden
ssm管理系统中出现HTTP Status 403-Forbidden .Access to the specified resource has been forbidden
|
XML JSON Java
SpringMVC报错:HTTP Status 405 - JSPs only permit GET POST or HEAD
SpringMVC报错:HTTP Status 405 - JSPs only permit GET POST or HEAD
313 0
SpringMVC报错:HTTP Status 405 - JSPs only permit GET POST or HEAD
下一篇
oss创建bucket