⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jinteractive.jsp

📁 提供 精通Java Web动态图表编程 一书的源代码, 大家赶快下载呀
💻 JSP
字号:
<!--
	Fig. 8.3_02: JInteractive.jsp
	功能: JFreeChart实例26: 与Servlet交互的JSP程序
-->
<%@ page language="java"  contentType="text/html;charset=GB2312" %>
<% 
	String chartType = request.getParameter("chartType");
%>

<html>
<head>
   <meta http-equiv="content-type" content="text/html; charset=gb2312">
   <title>JFreeChart实例26: 利用JFreeChart编写的具有交互功能的Servlet</title>
</head>

<body>

    <h1>请选择一种风格的图表<br></h1>
	<FORM ACTION="JInteractive.jsp" METHOD=POST>
	<INPUT TYPE="radio" NAME="chartType" VALUE="pie"> 饼图
	<INPUT TYPE="radio" NAME="chartType" VALUE="pie3D"> 3D饼图
	<INPUT TYPE="radio" NAME="chartType" VALUE="bar"> 直方图
	<INPUT TYPE="radio" NAME="chartType" VALUE="bar3D"> 3D 直方图
	&nbsp;&nbsp;&nbsp;&nbsp;
	<INPUT TYPE="submit" VALUE="生成图表">
	</FORM>
	<%
		if (chartType == null)
		{
			out.print("<p><h2><FONT COLOR=\"#FF0000\">" + 
				"请选则一种风格的图表!</FONT></h2>");
		}
		else
		{
			out.print("<p><IMG SRC=\"/jInteractive?chartType=" + chartType + 
				"\" WIDTH=\"500\" HEIGHT=\"375\" BORDER=\"1\" />");
		}	
	%>

</body>
</html>

<!--
/**************************************************************************
 * (C) Copyright 2004-2005 by Jingkui Zhong(钟京馗) and Huan Tang(唐桓).  *
 * All Rights Reserved.                                                   *
 *                                                                        *
 * DISCLAIMER: The authors of this code have used their                   *
 * best efforts in preparing the code. These efforts include the          *
 * development, research, and testing of the theories and programs        *
 * to determine their effectiveness. The authors and publisher make       *
 * no warranty of any kind, expressed or implied, with regard to these    *
 * programs or to the documentation contained in these codes. The authors *
 * shall not be liable in any event for incidental or consequential       *
 * damages in connection with, or arising out of, the furnishing,         *
 * performance, or use of these programs.                                 *
 **************************************************************************/
 -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -