jspÒ³ÃæʵÏÖ·ÖÒ³ÏÔʾ²»Õý³£ - Java / Web ¿ª·¢
ÎҵĴúÂëÈçÏ£º
<%@ page language="java" contentType="text/html;charset=gb2312" pageEncoding="gb2312"%>
<%@ page import="java.sql.*" %>
<%@ page import="shop.javabean.DBConnection" %>
<jsp:useBean id="db" class="shop.javabean.DBConnection" ></jsp:useBean>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/shop.css"/>
<title>µêÆÌÁбí</title>
</head>
<body bgcolor="#ffffff">
<table width="745" border="0" align="center">
<tr>
<td width="119" >µê±ê</td>
<td width="251">µêÃû</td>
<td width="83">Ö÷Óª²úÆ·</td>
<td width="63">·ÃÎÊÈËÊý</td>
<td width="63">¿ªµêÈÕÆÚ</td>
</tr>
<%
String tdBgColor = "";
int num = 0;//¿ØÖƵ¥Ôª¸ñÑÕÉ«
ResultSet rs = null;
String countRecord = "";
//sql2 = "select count(Remes_Id) from SReMessage where Mes_Id='"+Mes_Id+"' group by Mes_Id";
String sql0 = "select count(*) from Shop";
rs = db.executeQuery(sql0);
if(rs.next()){
countRecord = rs.get
Ïà¹ØÎÊ´ð£º
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ã潫²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
ÎÒÊǸöÐÂÊÖ£¬Íû¸ßÊÖ½â´ð
ÎÒÏÖÔÚÒѾ°²×°ÁËmysql£¬Ò²ÓÐmysqlµÄjdbc¡£µ«ÎÒÔõôÅäÖú󣬲ÅÄÜÔÚMyEclipseÀï²Ù×÷mysqlÄØ£¿Çë¸ßÊÖ˵Ïêϸµã
´ò¿ªMyeclipse----window---open perspective---MyEclipse database explorer-- ......
È磺 @superwaring("unchecked");
Õâ¸öÀïÃ涼¿ÉÒÔÈ¡ÄÄЩֵ°¡£¬»¹ÓÐÀàËÆµÄ @superwaring±êÇ©ÓÐÄÄЩ°¡
ûÓùý¡£¡£
¿´jeeµÄapi
javax.persistenceÀï
@superwaring("unchecked");Ö»ÊǺöÂÔ ......
Java code:
......
synchronized(user){
int loginNum = Integer.parseInt(Main_Client_Dia.jtf2.getText().trim());
Main_Client_Dia.jtf2.setText("");
loginNum++;
......