Time of Update: 2018-12-03
查看現有項目的struts和hibernate和spring版本1. 查看 struts.jar/META-INF/MANIFEST.MF再查看 Implementation-Version看後面的數字.. Manifest-Version: 1.0Specification-Title: Struts FrameworkClass-Path: commons-beanutils.jar commons-collections.jar commons-dig ester.jar
Time of Update: 2018-12-03
Jquery方法<head> <script src="jquery-1.4.1.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { // 不需要on—— $(".table1 tr").mouseenter(function () {
Time of Update: 2018-12-03
我們發現在myeclipse中編輯js是很緩慢的事情,那麼怎麼辦?原文:If you go to Project > Properties > Builders, do you see a “JavaScript Validator” item in the list? Uncheck that and restart MyEclipse. Does performance now improve?Alternatively, go to Project >
Time of Update: 2018-12-03
思路: 看b有幾個字元組成,比如有兩個,ab,bb,bb,一次往後挪,很簡單 string a = "abbbbefgbc"; char[] charA = a.ToCharArray(); // 把字串拆分成字元數組 string b = "ab"; char[] charB = b.ToCharArray(); //
Time of Update: 2018-12-03
<asp:DataList ID="datalistmessage" runat="server" Width="500px" Style="text-align: left" CellPadding="5" CellSpacing="5"> <ItemTemplate> <table style="width: 90%" cellpadding="8" cellspacing="8">
Time of Update: 2018-12-03
Weblogic是一個強大的企業級J2EE WEB應用中介軟體,使用相當廣泛。 今天部署項目到WebLogic,發現代碼總不能生效,查了好久都查不出原因,最後想到可能是快取檔案的原因,可是這快取檔案到底在哪裡呢? 在Tomcat中,我們知道%catalina_home%/work是存放快取檔案的地方,發現上述情況,可以通過刪除這裡面的檔案,讓它重新編譯,以便代碼生效。
Time of Update: 2018-12-03
1.關於如何用指令碼修改fileupload控制項值的問題,開發環境vs2005,在上傳檔案時,需要一個取消的按鈕來清空type=file的value,而且這個頁面上有多個file控制項這個比較麻煩因為file的值本身是不允許用指令碼修改的(安全形度考慮) 方法1.使用指令碼把這個file的input移動到一個form中,然後調用reset,如果有多個這樣的input當然還要再移出來.這個方法我不會採用,因為對.net開發人員來講習慣了一個頁面就一個form所有控制項都在其中. 方法2.這個方
Time of Update: 2018-12-03
action:package com.xy.action;import java.awt.Color;import java.awt.Font;import java.awt.Graphics;import java.awt.image.BufferedImage;import java.util.Map;import java.util.Random;import javax.imageio.ImageIO;import
Time of Update: 2018-12-03
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Bind(); } this.drpDownDepartment.Items.Insert(0, new ListItem("請選擇部門", "0")); } 在調用的時候,需要做一個判斷:
Time of Update: 2018-12-03
ASP.net的default.aspx檔案的page指令 <%@ Page Language="C#" CodeBehind="CheckPoints.aspx.cs"Inherits="Web.UCenter.Point.CheckPoints"%> codebehind 表示處理aspx頁面資料的代碼檔案,由該代碼檔案派生出aspx頁面類 Inherits表明該檔案繼承自哪個命名空間的哪個類 格式:命名空間.類名 我們在編web程式時,通常要要處理兩個方面:
Time of Update: 2018-12-03
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { //判斷當前行是不是資料繫結行 if (e.Row.RowType == DataControlRowType.DataRow) { //排除了別的狀態
Time of Update: 2018-12-03
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace NullableDemo{ class Employee { private string name; public string Name { get { return name; } set { name =
Time of Update: 2018-12-03
class Customer { private string firstName, lastName, emailAddress; public string FirstName { get { return firstName; } set { firstName = value; } } public string LastName {
Time of Update: 2018-12-03
閑話少說: ①建立資料庫 ②aspx只是一個treeview控制項而已,可以設定它的樣式 ③cs public partial class index : System.Web.UI.Page { private ProAndCityDataContext dc = new ProAndCityDataContext(); protected void Page_Load(object sender, EventArgs e) {
Time of Update: 2018-12-03
建立一個對象是被調用。也就是new的時候;如:public class A{int i;String c;public A(){ } //無參構造方法public A(int i,String c) // 兩參構造方法{ this.i = i; this.c = c; }public static void main(String[] args){ A a = new A() ; //調用了無參構造方法; A
Time of Update: 2018-12-03
看到一篇文章“C#判斷字串是否為數字字串“它的地址是:http://www.cnblogs.com/cobblestone/archive/2011/06/21/2086397.html,作者用兩種方法來判斷字串是否為數字。其中一種是將字串進行一次強制轉換,再用try來容錯,成功轉換則證明該字串是數字,否則就不是! 看到這樣的代碼我是很淡定的,因為這種方法我見得很多,包括我公司現在的項目裡面還有這樣的代碼,以及我還在一些開源的項目裡面看到過類似的代碼。但無疑,這種方法是效率很低下的,我很奇怪
Time of Update: 2018-12-03
Convert.ToInt32int.Parse(Int32.Parse)int.TryParse(int)四者都可以解釋為將類型轉換為 int,那它們的區別是什麼呢? Convert.ToInt32 與 int.Parse 較為類似,實際上 Convert.ToInt32 內部調用了 int.Parse:Convert.ToInt32 參數為 null 時,返回 0; int.Parse 參數為 null 時,拋出異常。 Convert.ToInt32 參數為 "" 時,拋出異常;
Time of Update: 2018-12-03
最近領導要求用JMX寫一個監控WEBLOGIC啟動並執行東西, weblogic 9.2windows版本, JMX的代碼是從網上找的例子,準備先跑跑試試,結果出現Unsupported protocol: t3異常, 查了一下都說java.net.MalformedURLException: Unsupported protocol:
Time of Update: 2018-12-03
這個問題是我發的文章http://topic.csdn.net/u/20091126/10/3a1be800-8b57-4042-a0ce-5fb582fde515.html Class.forName("com.ibm.db2.jcc.DB2Driver");Connection conn = getconn("jdbc:db2://127.0.0.1:50000/TESTRA", "TEST", "123456");ResultSet rs =
Time of Update: 2018-12-03
今天在匯入一個項目時出現It is indirectly referenced from required .class file 的錯誤,查了一下網,都說是 錯誤提示: It is indirectly referenced from required .class file 錯誤的解決原因:你正要使用的類調用了另一個類,而這個類又調用了其他類,這種關係可能會有好多層。而在這個調用的過程中,某個類所在的包的缺失就會造成以上那個錯誤。解決方案:匯入缺失的包 我機器上裝了JDK1.5和JDK1.6