histogram.jsp
来自「功能描述:jsp开发答疑解惑200问题说明」· JSP 代码 · 共 18 行
JSP
18 行
<%@page contentType="image/jpeg" %>
<jsp:useBean id="hist" scope="page" class="myBean.Histogram" />
<%
int width = 0;
try {
width = Integer.parseInt(request.getParameter("percent"));
} catch(Exception e) {
return;
}
int totalWidth = 200;
if(width >totalWidth)
width = totalWidth;
double percent = hist.getHistogram(width, totalWidth, 20, response.getOutputStream());
//session.setAttribute("percent", new Double(percent));
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?