Time of Update: 2018-12-03
資料庫結構:資料表:student表結構:Field Name DataType Lenid int 20name varchar 25major varchar 25score int 20sex varchar 20表資料:編號/姓名/專業/學分/性別id name major score sex1
Time of Update: 2018-12-03
<meta http-equiv="Refresh" content="5">,可以實現每5秒重新整理一次 當前 網頁。自動重新整理任意網頁【定時器】:<meta http-equiv="Refresh" content="5">和【抓網頁】的方法<IFRAME></IFRAME>,<!--這裡以定時重新整理部落格園首頁為例--><html><meta http-equiv="Refresh" content="5"&
Time of Update: 2018-12-03
步驟如下;1.lib中匯入包jfreechart包(gnujaxp.jar,...jfreechart-1.0.9.jar...)我的空間有下載:http://d.download.csdn.net/down/364609/facepp 2.引入包12個<%@ page import="org.jfree.chart.ChartFactory,java.io.*" %><%@ page import="org.jfree.chart.JFreeChart,
Time of Update: 2018-12-03
According to TLD or attribute directive in tag file, attribute value does not accept any expressions Can't instantiate class:xxx.xxx.xxx java.lang.IllegalStateException: No thread-bound request: use RequestContextFilter 導航出現問題,不工作 According to
Time of Update: 2018-12-03
ResultSet can not re-read row data for column今天在寫程式的時候發現了一個很奇怪的問題“ResultSet can not re-read row data for column”,用google一搜,原來是微軟公司的驅動的相容性不太好。有熱心人總結了微軟碟機動的缺點:(1)如果採用jdbc-odbc驅動,那麼就必須按照查詢順序來一次讀取(不論有沒有image或text類型)(2)如果採用微軟提供的ms sql server jdbc driver,
Time of Update: 2018-12-03
程式採用自動安裝程式,把所有CGI檔案和HTML目錄及其下面的檔案上傳到CGI-BIN目錄下,並保持它的原結構,圖片檔案請不要放在CGI-BIN目錄下,把cgi檔案屬性改為755,然後執行install.cgi首頁調用代碼:<script language="JavaScript" src="http;//你的程式路徑/news.cgi"></script>調用數目可以在安裝時設定,也可以修改setup.cgi檔案裡的$news來改變它 淘特JSP留言板
Time of Update: 2018-12-03
下拉框控制div顯示與隱藏<%@ page language="java" contentType="text/html; charset=GB2312" import="java.sql.*"%><jsp:useBean id="db" class="com.pp.db.DBOperation"></jsp:useBean><%String path = request.getContextPath();String basePath =
Time of Update: 2018-12-03
使用SmtpClient類發送簡單的文本郵件,但不能發送包含附件的郵件,每次只能發送給一個收信人,它是jdk內建的包,所以比較有通用性。JavaMail包提供了很完善的功能,可以寫出任何一個強大的郵件系統。源碼。<%-- 功能:JSP常式,用JSP發電子郵件%><%@page contentType="text/html;GBK"%><%@page import="sun.net.smtp.SmtpClient"%><html><head&
Time of Update: 2018-12-03
第一天ant 的包 http://ant.apache.org/binownload.cgijsf-api.jar jsf-impl.jar無法解析匯入 javax.el ,匯入包 el-api.jar就可以了 Cannot find FacesContext /index.faceshttp://localhost:8080/d/index.faces附件,jsf 入門模組第一個JSF程式
Time of Update: 2018-12-03
servlet中跳轉的有兩種方法:方法一:response.sendRedirect("../success.jsp")利用這個方法如果跳轉前有request.setAttribute("a","b")的話,那麼參數是傳不到success.jsp,因為它在用戶端重新導向到success.jsp了,本質上跳了2次。所以參數失效,使用這個的時候會發現瀏覽器的URL地址發生了變化。方法二:RequestDispatcher rd =
Time of Update: 2018-12-03
sqlserver資料庫的移植一、備份資料庫 1、開啟SQL企業管理器,在控制台根目錄中依次點開Microsoft SQL Server2、SQL
Time of Update: 2018-12-03
AWT圖形化使用者介面設計之一(Frame&Panel) 1 用AWT產生圖形化使用者介面 抽象視窗工具包AWT (Abstract Window Toolkit) 是 API為Java 程式提供的建立圖形化使用者介面GUI (Graphics User Interface)工具集,AWT可用於Java的applet和applications中。它支援圖形化使用者介面編程的功能包括:
Time of Update: 2018-12-03
<script>function switchMenu(evt){var ele=evt.target||evt.srcElement; //分別針對非ie和ie,擷取事件的來源物件if(ele.tagName=="H1"){ //如果是<h1>var ulu=ele.parentNode.getElementsByTagName("ul");for(var
Time of Update: 2018-12-03
1.web列印<a href="#" onClick="window.print()">列印</a>2利用IE內建webBroswer控制項列印1)建立HTML的object標籤,調用webBroswer控制項<object id="WebBrowser" classid="ClSID:8856F961-340A-11D0-A96B-00C04Fd705A2" width="0" height="0">2)<a href="#"
Time of Update: 2018-12-03
2. BorderLayout BorderLayout 是Window,Frame和Dialog的預設布局管理器。BorderLayout布局管理器把容器分成5個地區:North,South,East,West和Center,每個地區只能放置一個組件。各個地區的位置及大小如所示: 例5.5 import java.awt.*; public class buttonDir{ public static void main(String args[]){
Time of Update: 2018-12-03
1.mysql5.0和mysql4.0可以一起裝安裝5.0時改連接埠3307圖形化工具 Navicat8.0中文版和破解補丁 2 . navicat下設定字元集設定字元集,進階選項卡中/把使用MySQL字元集去掉,然後在編碼中輸入 GB2312;資料轉移實現更新 "資料轉送", 儲存實現備份 "轉儲sql檔案" ,建立資料庫和匯入資料 "運行批次任務檔案" :http://download.csdn.net/source/426316Navicat8.0 使用 http://
Time of Update: 2018-12-03
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""[url]http://www.w3.org/TR/html4/loose.dtd[/url]"><html><head><meta http-equiv="Content-Type" content="text/html;
Time of Update: 2018-12-03
1.jsf頁面<h:inputTextvalue="#{searchConditions.conditions['I_outid']}" /> 類型I_*,D_*,....2.DAO public ListChunk listChunkOut(BusinessSearchConditions conditions) { StringBuffer hql=new StringBuffer("from Out where 1=1"); Map orderMap=new
Time of Update: 2018-12-03
4. CardLayout CardLayout布局管理器能夠協助使用者處理兩個以至更多的成員共用同一顯示空間,它把容器分成許多層,每層的顯示空間佔據整個容器的大小,但是每層只允許放置一個組件,當然每層都可以利用Panel來實現複雜的使用者介面。牌布局管理器(CardLayout)就象一副疊得整整齊齊的撲克牌一樣,有54張牌,但是你只能看見最上面的一張牌,每一張牌就相當於牌布局管理器中的每一層。 例5.7 import java.awt.*; import java.awt.event.*;
Time of Update: 2018-12-03
首先要點一下尋找才有資料1.listChunkOut.jsp<h:form id="searchForm"><h:commandLink action="#{outBean.listChunkOut}" styleClass="highLightLink" id="search"> <h:outputText value="尋找"