Time of Update: 2018-12-05
TOMCAT源碼分析(啟動架構)前言: 本文是我閱讀了TOMCAT源碼後的一些心得。 主要是講解TOMCAT的系統架構, 以及啟動流程。若有錯漏之處,敬請批評指教!建議: 畢竟TOMCAT的架構還是比較複雜的, 單是從文字上理解, 是不那麼容易掌握TOMCAT的架構的。 所以得實踐、實踐、再實踐。 建議下載一份TOMCAT的源碼, 調試通過, 然後單步跟蹤其啟動過程。 如果有不明白的地方, 再來查閱本文, 看是否能得到協助。 我相信這樣效果以及學習速度都會好很多! 1.
Time of Update: 2018-12-05
用過struts1.x的人都知道,標籤庫有html、bean、logic、tiles,而struts2.0裡的標籤卻沒有分類,只用在jsp標頭檔加上<%@ taglib prefix="s" uri="/struts-tags" %>就能使用struts2.0的標籤庫下面就介紹下每個標籤的用法(有錯請指正):A:<s:a href=""></s:a>-----超連結,類似於html裡的<a></a><s:action name="
Time of Update: 2018-12-05
關於NOSQL的定義: Next Generation Databases mostly addressing some of the points: being non-relational, distributed, open-source and horizontally scalable. The original intention has beenmodern web-scale databases. The movement began early 2009 and is
Time of Update: 2018-12-05
常有網友提問,如何讓網頁中嵌入的Flash標籤也符合web標準。目前還沒有一個完美的解決辦法,這篇文章中,我們將Flash嵌入標籤寫入js檔案中,通過變數傳遞參數的辦法來迴避不符合標準的標籤。 請注意,這隻是一個變通的方法,換湯不換藥,並未能最終解決存在的問題,通過驗證只是一種表象,這樣的思路是不是可取,在實際操作中請大家自行斟酌。首先建立一個JS檔案flash.js。寫入如下代碼:function swf(file,w,h) { document.write('<object
Time of Update: 2018-12-05
考研成績下來,很是無奈。只好等國家線。最近隨便找了份工作,因為工作的原因需要把一個資料庫中的一張錶轉化為XML. 本來sql server 2000 以後都有FOR XML 的功能是可以直接用的,但是無奈寫到代碼裡就有問題。所以自己研究下寫了一個。下面是幾個主要函數,整體代碼會發送到我的下載中。大家免費下載。 /// <summary> /// read a datatable from a sql database and translate to xml
Time of Update: 2018-12-05
安裝Tomcat之前要先安裝JDK,可從http://java.sun.com上下載最新版本的JDK。 Tomcat可從Apache Jakarta Project網站(http://jakarta.apache.org/site/binindex.cgi)上下載,本書使用的Tomcat版本是 5.5.7,它需要安裝J2SE 5.0(JDK 1.5)以上的版本才能運行。對於Windows作業系統,Tomcat 5.5.7提供了兩種安裝檔案,一種是jakarta-tomcat-5.5.7.exe,
Time of Update: 2018-12-05
CRect myClient; CDC dcMemory; CBitmap bitmap; dcMemory.CreateCompatibleDC(&dc); GetClientRect(&myClient); bitmap.CreateCompatibleBitmap(&dc, myClient.right, myClient.bottom); dcMemory.SelectObject(&bitmap)
Time of Update: 2018-12-05
第一種結構:<?xml version="1.0" encoding="utf-8" ?> <list> <software> <name>軟體1</name> <icon>1.gif</icon> </software> <software>
Time of Update: 2018-12-05
solaris9 安裝expect工具方法在網站http://www.sunfreeware.com/indexsparc9.html下載到對應系統本版軟體包需要下載4個軟體包分別是:tcl-8.5a4-sol9-sparc-local.gztk-8.5a4-sol9-sparc-local.gzlibgcc-3.4.6-sol9-sparc-local.gzexpect-5.43.0-sol9-sparc-local.gz在系統上解決軟體包gunzip
Time of Update: 2018-12-05
import org.eclipse.swt.SWT;import org.eclipse.swt.widgets.Button;import org.eclipse.swt.widgets.Display;import org.eclipse.swt.widgets.Shell;public class HelloWorld { /** * @param args */ public static void main(String[] args) { // TODO
Time of Update: 2018-12-05
ext在表單處理方面的能力十分優秀,在實際應用中,我們經常遇到資料修改的應用,因此,我們利用ext的表單載入做出極具使用者體驗的表單,簡單示範下,先看下xml資料代碼:<response success="true"><contact><!--對應record :
Time of Update: 2018-12-05
這裡實現的效果的從XML檔案中把資料動態載入到表單中!其實這部分在和data部分一起將比較好,但因為這裡也比較容易,涉及到的配置也不多! Form 表單的Action.load方法的應用,由於前面有詳細的講解Action方法是應用,所以這裡不用多講,為了簡單明了,這裡只設定倆個配置選項,URL 和 waitMsg, 讀取資料部分主要涉及到 Ext.data.XmlReader,即xml資料讀取器,record表示資料記錄所在的標籤名,記住這是指特定的一條記錄,不過我這裡這裡只有一條記錄!
Time of Update: 2018-12-05
http://www.iteye.com/topic/149652 <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%String path = request.getContextPath();String basePath = request.getScheme() + "://"+ request.getServerName() + ":" +
Time of Update: 2018-12-05
使用之前需要自己下載jspSmartUpload.jar包 這裡找到一個支援中文的jar包,如下: http://www.blogjava.net/Files/hijackwust/jsmartcom_zh_CN.rar 把壓縮包裡面的jar拷貝到工程的lib下面即可 主要方法介紹 上傳 // 建立一個SmartUpload對象 SmartUpload su = new SmartUpload(); // 上傳初始化
Time of Update: 2018-12-05
import org.eclipse.swt.SWT;import org.eclipse.swt.events.SelectionEvent;import org.eclipse.swt.events.SelectionListener;import org.eclipse.swt.graphics.Image;import org.eclipse.swt.widgets.Button;import org.eclipse.swt.widgets.Display;import
Time of Update: 2018-12-05
fileUpload 設定為 true控制項加屬性: inputType : 'file' 可以用Formpanel,也可以使用fileset; fileUpload 設定為true後,在設為url傳參後能取到值, Ext取到ext控制項的值 var fileHidden = new Ext.form.Hidden ({name : 'filePath'});非FormPanel: fileHidden.setValue(Ext.getCmp("file").
Time of Update: 2018-12-05
import org.eclipse.swt.widgets.Display;import org.eclipse.swt.widgets.Shell;import org.eclipse.swt.SWT;public class ShellDemo { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method
Time of Update: 2018-12-05
// TODO Auto-generated method stub Display display = new Display(); //獲得該Display的一個Shell類的執行個體 Shell shell = new Shell(display); //為視窗設定大小 shell.setSize(200, 200); //為視窗設定標題列文字 shell.setText("Shell"); //為視窗設定布局類型 shell.setLayout(new
Time of Update: 2018-12-05
import org.eclipse.swt.widgets.Display;import org.eclipse.swt.widgets.Shell;import org.eclipse.swt.SWT;public class ShellStyle { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Display display =
Time of Update: 2018-12-05
普通按鈕:SWT.PUSH Button bt1 = new Button(shell, SWT.PUSH | SWT.LEFT); //設定文本 bt1.setText("SWT.LEFT"); //設定懸浮提示 bt1.setToolTipText("SWT.LEFT"); Button bt2 = new Button(shell, SWT.PUSH |