code035.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" errorPage="code036.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>使用exception对象获取异常信息</title>
</head>
<body>
<%
request.setAttribute("price", "12.5元");
float price = Float.parseFloat(request.getAttribute("price").toString());
%>
</body>
</html>