/*@lineinfo:filename=/FlowerIndex.jsp*/
/*@lineinfo:generated-code*/
import oracle.jsp.runtime.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import Flower.model.DBConnect;
import java.util.*;
import java.lang.*;
public class _FlowerIndex extends com.orionserver.http.OrionHttpJspPage {
public final String _globalsClassName = null;
// ** Begin Declarations
// ** End Declarations
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
response.setContentType( "text/html;charset=gb2312");
/* set up the intrinsic variables using the pageContext goober:
** session = HttpSession
** application = ServletContext
** out = JspWriter
** page = this
** config = ServletConfig
** all session/app beans declared in globals.jsa
*/
PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
// Note: this is not emitted if the session directive == false
HttpSession session = pageContext.getSession();
if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
JspFactory.getDefaultFactory().releasePageContext(pageContext);
return;
}
int __jsp_tag_starteval;
ServletContext application = pageContext.getServletContext();
JspWriter out = pageContext.getOut();
_FlowerIndex page = this;
ServletConfig config = pageContext.getServletConfig();
try {
// global beans
// end global beans
out.write(__oracle_jsp_text[0]);
/*@lineinfo:translated-code*//*@lineinfo:2^1*/ Flower.model.shoppingCartBean cart;
synchronized (session) {
if ((cart = (Flower.model.shoppingCartBean) pageContext.getAttribute( "cart", PageContext.SESSION_SCOPE)) == null) {
cart = (Flower.model.shoppingCartBean) new Flower.model.shoppingCartBean();
pageContext.setAttribute( "cart", cart, PageContext.SESSION_SCOPE);
}
}
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[1]);
/*@lineinfo:user-code*//*@lineinfo:171^15*/
Connection con=null;
PreparedStatement pstmt=null;
ResultSet rs=null;
con=DBConnect.getConnection();
pstmt=con.prepareStatement("select * from FlowerType");
rs=pstmt.executeQuery();
while(rs.next())
{
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[2]);
/*@lineinfo:user-code*//*@lineinfo:181^30*/ out.print(rs.getString(1));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[3]);
/*@lineinfo:user-code*//*@lineinfo:181^52*/ out.print(rs.getString(2));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[4]);
/*@lineinfo:user-code*//*@lineinfo:183^15*/
}
rs.close();
pstmt.close();
con.close();
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[5]);
out.write(__oracle_jsp_text[6]);
/*@lineinfo:user-code*//*@lineinfo:414^36*/ out.print(cart.getTotalQuantity());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[7]);
/*@lineinfo:user-code*//*@lineinfo:415^30*/ out.print(cart.getTotalMoney());
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[8]);
out.write(__oracle_jsp_text[9]);
out.write(__oracle_jsp_text[10]);
out.write(__oracle_jsp_text[11]);
out.write(__oracle_jsp_text[12]);
}
catch( Throwable e) {
try {
if (out != null) out.clear();
}
catch( Exception clearException) {
}
pageContext.handlePageException( e);
}
finally {
OracleJspRuntime.extraHandlePCFinally(pageContext,false);
JspFactory.getDefaultFactory().releasePageContext(pageContext);
}
}
private static final char __oracle_jsp_text[][]=new char[13][];
static {
try {
__oracle_jsp_text[0] =
"\n".toCharArray();
__oracle_jsp_text[1] =
"\n<html>\n\n<!-- Mirrored from web.hichina.com/sitemanager/templet/038/left1/ by HTTrack Website Copier/3.x [XR&CO'2003], Thu, 28 Aug 2003 00:01:52 GMT -->\n<head>\n\n\n<title>\n幸福瞬间花卉订购网\n</TITLE>\n<!--CharSet-->\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\n<style type=\"text/css\">\n<!--\ntd { font-size: 12px}\n.style1 {\n\tfont-family: \"华文行楷\";\n\tfont-size: 24px;\n}\n.style2 {\n\tcolor: #FF6600;\n\tfont-weight: bold;\n}\n.style5 {\n\tfont-family: \"华文行楷\";\n\tfont-size: 14px;\n\tcolor: #FFFFFF;\n}\n.style6 {\n\tfont-family: \"华文行楷\";\n\tfont-size: 16px;\n\tcolor: #993300;\n}\n.style7 {\n\tfont-size: 16px;\n\tcolor: #FF0000;\n}\n.style8 {\n\tfont-weight: bold;\n\tfont-size: 18px;\n\tcolor: #FF6600;\n\tfont-family: \"隶书\";\n}\n.style9 {color: #000000}\n.style10 {color: #000033}\n-->\n</style>\n<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>\n<!--\n\nfunction window_onload() {\n<!--Page.OnLoad-->\n}\n\n//-->\n</SCRIPT>\n</head>\n\n<body bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" link=\"#990000\" vlink=\"#990000\" >\n \n\n\n<!--Counter-->\n<!--Something Here-->\n<table width=\"778\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" background=\"images/top01.gif\" height=\"158\">\n <tr>\n <td width=\"316\" valign=\"top\">\n <table width=\"297\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"137\">\n <tr>\n <td height=\"51\" width=\"166\"> </td>\n <td height=\"51\" width=\"131\"> </td>\n </tr>\n <tr>\n <td width=\"166\"> </td>\n <td width=\"131\"><img src=\"images/01.gif\" width=\"80\" height=\"99\"></td>\n </tr>\n </table> </td>\n <td width=\"462\" align=\"center\" valign=\"top\"> \n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"317\">\n <tr> \n <td height=\"37\"> </td>\n </tr>\n <tr> \n <td height=\"36\"> \n <div align=\"center\"><font color=\"#FFFFFF\"><b><font color=\"#FF6600\"><span class=\"style1\">幸福瞬间花卉订购网</span></font></b></font><font size=\"5\" color=\"#FFFFFF\"><b><font color=\"#FF6600\"> \n <!--Your Company Name-->\n </font></b></font></div>\n </td>\n </tr>\n <tr> \n <td height=\"65\"> \n <div align=\"center\">\n <p><font size=\"4\" color=\"#FFFFFF\"><b><font color=\"#FF9933\">\n <!--Your Company Name.English-->\n </font></b></font><font color=\"#FFFFFF\"><b><font color=\"#FF9933\"><span class=\"style1\">Happy monment</span></font></b></font></p>\n\n </div> </td>\n </tr>\n </table> \n <div align=\"center\"></div></td>\n </tr>\n</table>\n<table width=\"778\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" background=\"../asp模板/400套超酷网站模板/038/left1/images/top03.gif\" height=\"41\">\n <tr>\n <td width=\"778\" align=\"right\" background=\"images/top03.gif\"><div align=\"right\"></div></td>\n </tr>\n</table>\n<table width=\"778\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n <tr>\n <td width=\"194\" height=\"248\" valign=\"top\" background=\"images/top04.gif\" cl