锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美中文一区二区三区,亚洲精品视频在线观看网站,亚洲一区二区三区中文字幕 http://www.aygfsteel.com/rickhunter/category/3462.html鍏充簬JAVA鐨勭偣鐐規淮婊?/description>zh-cnTue, 27 Feb 2007 11:02:39 GMTTue, 27 Feb 2007 11:02:39 GMT60eclipse 3.2鍜寃tp 1.5鐨勪腑鏂囪璦鍖?/title><link>http://www.aygfsteel.com/rickhunter/articles/64709.html</link><dc:creator>鍗冨北楦熼緇?/dc:creator><author>鍗冨北楦熼緇?/author><pubDate>Mon, 21 Aug 2006 01:28:00 GMT</pubDate><guid>http://www.aygfsteel.com/rickhunter/articles/64709.html</guid><wfw:comment>http://www.aygfsteel.com/rickhunter/comments/64709.html</wfw:comment><comments>http://www.aygfsteel.com/rickhunter/articles/64709.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rickhunter/comments/commentRss/64709.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rickhunter/services/trackbacks/64709.html</trackback:ping><description><![CDATA[eclipse 3.2 涓枃璇█鍖咃細<br /><a >http://download.eclipse.org/eclipse/downloads/drops/L-3.2_Language_Packs-200607121700/index.php</a><br /><br />wtp 1.5 涓枃璇█鍖?br /><a >http://download.eclipse.org/webtools/downloads/translations/R1.5/R-1.5.0-200606281455/index.html</a><br /><img src ="http://www.aygfsteel.com/rickhunter/aggbug/64709.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rickhunter/" target="_blank">鍗冨北楦熼緇?/a> 2006-08-21 09:28 <a href="http://www.aygfsteel.com/rickhunter/articles/64709.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍥捐Вeclipse+myelcipse寮鍙慐JBhttp://www.aygfsteel.com/rickhunter/articles/25484.html鍗冨北楦熼緇?/dc:creator>鍗冨北楦熼緇?/author>Mon, 26 Dec 2005 11:31:00 GMThttp://www.aygfsteel.com/rickhunter/articles/25484.htmlhttp://www.aygfsteel.com/rickhunter/comments/25484.htmlhttp://www.aygfsteel.com/rickhunter/articles/25484.html#Feedback36http://www.aygfsteel.com/rickhunter/comments/commentRss/25484.htmlhttp://www.aygfsteel.com/rickhunter/services/trackbacks/25484.html閰嶇疆Weblogic9.0
   
    棣栧厛闇瑕侀厤緗ソeclipse銆傛垜榪欓噷涓昏璇存槑weblogic鐨勯厤緗?br>    ejb19.jpg

    娉ㄦ剰JDK閫夋嫨JDK5.0鐨勭増鏈?/font>
   
    欏轟究灝唚eblogic8鐨勯厤緗篃璐翠笂鏉ワ紝渚涘ぇ瀹舵瘮杈冨弬鑰?br>    ejb18.jpg
   
    娉ㄦ剰weblogic8鐨凧DK鐗堟湰蹇呴』鏄疛DK1.4銆?/font>
   
    鎺ヤ笅鏉ュ氨寮濮嬫垜浠殑寮鍙戜簡銆?br>
ejb1.jpg

ejb2.jpg

ejb3.jpg

ejb4.jpg

ejb5.jpg

涓嬮潰灝辨槸SessionBean鐨勪唬鐮?br>
30

鍏跺疄灝辨槸淇敼浜嗗叾涓殑涓涓柟娉曪細
 1 /**
 2      * An example business method
 3      *
 4      * @ejb.interface-method view-type = "remote"
 5      * 
 6      * @throws EJBException Thrown if method fails due to system-level error.
 7      */
 8     public String hello() throws EJBException {
 9         // rename and start putting your business logic here
10         return new String("HelloEJBWorld!");
11     }
娉ㄦ剰錛氫唬鐮佷腑鐨勮В閲婃枃瀛椾笉瑕佸垹闄わ紝鍥犱負XDoclet闇瑕併?/u>

閰嶇疆灞炴?br>ejb6.jpg

娣誨姞weblogic.jar銆傛垜鐨勮礬寰勬槸錛歜ea\weblogic90\server\lib\weblogic.jar
ejb16.jpg

ejb7.jpg

ejb8.jpg

ejb9.jpg

ejb10.jpg

ejb11.jpg

ejb12.jpg

ejb13.jpg

ejb14.jpg

ejb15.jpg

灝變笅鏉ュ啓EJBTest綾伙細
 1 package com;
 2 
 3 import java.rmi.RemoteException;
 4 import java.util.Properties;
 5 
 6 import javax.ejb.CreateException;
 7 import javax.naming.Context;
 8 import javax.naming.InitialContext;
 9 import javax.naming.NamingException;
10 
11 import com.interfaces.HelloWorld;
12 import com.interfaces.HelloWorldHome;
13 
14 public class EJBTest {
15 
16     /**
17      * @param args
18      */
19     public static void main(String[] args) {
20         // TODO 鑷姩鐢熸垚鏂規硶瀛樻牴
21         Properties properties=new Properties();
22         properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
23         properties.setProperty(Context.PROVIDER_URL,"t3://localhost:7001");
24         
25         Context context;
26         try {
27             context = new InitialContext(properties);
28             HelloWorldHome hwh=(HelloWorldHome)context.lookup("ejb/HelloWorld");
29             HelloWorld hw=hwh.create();
30             String s=hw.hello();
31             System.out.println(s);
32         } catch (NamingException e) {
33             // TODO 鑷姩鐢熸垚 catch 鍧?/span>
34             e.printStackTrace();
35         } catch (RemoteException e) {
36             // TODO 鑷姩鐢熸垚 catch 鍧?/span>
37             e.printStackTrace();
38         } catch (CreateException e) {
39             // TODO 鑷姩鐢熸垚 catch 鍧?/span>
40             e.printStackTrace();
41         }
42         
43     }
44 
45 
46 }
47 


鏈鍚庡氨鏄湅緇撴灉浜嗭紝鍏堝惎鍔╳eblogic錛岀劧鍚庤繍琛孍JBTest紼嬪簭銆?br>
ejb17.jpg












]]>
鎬庝箞鏍瘋В鍐砿yeclipse璧勬簮鏂囦歡涓殑涓枃緙栫爜闂 杞創鑷狢SDN璁哄潧http://www.aygfsteel.com/rickhunter/articles/16180.html鍗冨北楦熼緇?/dc:creator>鍗冨北楦熼緇?/author>Thu, 20 Oct 2005 10:28:00 GMThttp://www.aygfsteel.com/rickhunter/articles/16180.htmlhttp://www.aygfsteel.com/rickhunter/comments/16180.htmlhttp://www.aygfsteel.com/rickhunter/articles/16180.html#Feedback0http://www.aygfsteel.com/rickhunter/comments/commentRss/16180.htmlhttp://www.aygfsteel.com/rickhunter/services/trackbacks/16180.html
鍛戒護涓簄ative2ascii 璧勬簮鏂囦歡鍚?鏂扮殑璧勬簮鏂囦歡鍚?
鎵ц瀹屽悗渚夸細鍦ㄦ柊鐨勮祫婧愭枃浠朵腑鐪嬭涓枃鍏ㄥ彉鎴?u...浠涔堜簡鏍峰瓙~~榪欐牱灝卞彲浠ヤ簡

鎶婃棫鐨勫垹鎺? 鏂扮殑璧勬簮鏂囦歡鏀瑰洖鏃х殑璧勬簮鏂囦歡鍚?br>
鏂規硶浜?浣跨敤鎻掍歡PropertiesEdit,涓嬭澆鍦板潃:
http://propedit.sourceforge.jp/eclipse/updates/

鏂規硶涓? 淇敼properties鐨勬簮浠g爜.涓昏鏄慨鏀箂aveConvert()鏂規硶鍜宭oadConvert()鏂規硶錛屽ぇ瀹跺彲浠ヨ嚜宸卞緩绔嬩竴涓被錛岀劧鍚庢妸properties綾葷殑浠g爜鎷瘋礉榪囨潵錛岀劧鍚庝慨鏀硅繖涓や釜鏂規硶灝卞彲浠ヤ簡銆?br> 鎴栬呯洿鎺ュ皢鎴戜笅闈㈢殑浠g爜鎷瘋礉榪囧幓灝卞彲浠ヤ簡銆?br>
package xiaotang.util;
import java.util.*;
package xiaotang.util;

import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.BufferedWriter;
import java.util.Hashtable;
import java.util.*;
/**
*
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: 鍝堝皵婊ㄥ晢涓氬ぇ瀛?lt;/p>
*
* @author Onlyfor_love
* @version 1.0
*/

public class PropertiesExt extends Hashtable {

private static final long serialVersionUID = 4112578634029874840L;
protected PropertiesExt defaults;
public PropertiesExt() {
this(null);
}
public PropertiesExt(PropertiesExt defaults) {
this.defaults = defaults;
}
public synchronized Object setProperty(String key, String value) {
return put(key, value);
}

private static final String keyValueSeparators = "=: \t\r\n\f";

private static final String strictKeyValueSeparators = "=:";

private static final String specialSaveChars = "=: \t\r\n\f#!";

private static final String whiteSpaceChars = " \t\r\n\f";

public synchronized void load(InputStream inStream) throws IOException {
//鎶婃墍鏈夌殑8859-1鍏ㄩ儴鎹㈡垚GBK
BufferedReader in = new BufferedReader(new InputStreamReader(inStream, "GBK"));
while (true) {
// Get next line
String line = in.readLine();
if (line == null)
return;

if (line.length() > 0) {

// Find start of key
int len = line.length();
int keyStart;
for (keyStart=0; keyStart<len; keyStart++)
if (whiteSpaceChars.indexOf(line.charAt(keyStart)) == -1)
break;

// Blank lines are ignored
if (keyStart == len)
continue;

// Continue lines that end in slashes if they are not comments
char firstChar = line.charAt(keyStart);
if ((firstChar != '#') && (firstChar != '!')) {
while (continueLine(line)) {
String nextLine = in.readLine();
if (nextLine == null)
nextLine = "";
String loppedLine = line.substring(0, len-1);
// Advance beyond whitespace on new line
int startIndex;
for (startIndex=0; startIndex<nextLine.length(); startIndex++)
if (whiteSpaceChars.indexOf(nextLine.charAt(startIndex)) == -1)
break;
nextLine = nextLine.substring(startIndex,nextLine.length());
line = new String(loppedLine+nextLine);
len = line.length();
}

// Find separation between key and value
int separatorIndex;
for (separatorIndex=keyStart; separatorIndex<len; separatorIndex++) {
char currentChar = line.charAt(separatorIndex);
if (currentChar == '\\')
separatorIndex++;
else if (keyValueSeparators.indexOf(currentChar) != -1)
break;
}

// Skip over whitespace after key if any
int valueIndex;
for (valueIndex=separatorIndex; valueIndex<len; valueIndex++)
if (whiteSpaceChars.indexOf(line.charAt(valueIndex)) == -1)
break;

// Skip over one non whitespace key value separators if any
if (valueIndex < len)
if (strictKeyValueSeparators.indexOf(line.charAt(valueIndex)) != -1)
valueIndex++;

// Skip over white space after other separators if any
while (valueIndex < len) {
if (whiteSpaceChars.indexOf(line.charAt(valueIndex)) == -1)
break;
valueIndex++;
}
String key = line.substring(keyStart, separatorIndex);
String value = (separatorIndex < len) ? line.substring(valueIndex, len) : "";

// Convert then store key and value
key = loadConvert(key);
value = loadConvert(value);
put(key, value);
}
}
}
}

/*
* Returns true if the given line is a line that must
* be appended to the next line
*/
private boolean continueLine(String line) {
int slashCount = 0;
int index = line.length() - 1;
while ((index >= 0) && (line.charAt(index--) == '\\'))
slashCount++;
return (slashCount % 2 == 1);
}

/**
*
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: 鍝堝皵婊ㄥ晢涓氬ぇ瀛?lt;/p>
*
* @author Onlyfor_love
* @version 1.0
*/
private String loadConvert(String theString) {
//璇ュ姛鑳戒富瑕佹槸灝嗗瓨鍌ㄧ殑key鍜寁alue鎻愬彇鍑烘潵錛屽洜涓哄瓨鍌ㄧ殑涓枃鍦ㄥ師鏉ョ殑properties綾諱腑琚漿鎹㈡垚浜嗗埆鐨勭紪鐮?br> //瀛樺偍鐨勪腑鏂囧湪*.properties鏂囦歡涓互涔辯爜鍑虹幇
char aChar;
int len = theString.length();
StringBuffer outBuffer = new StringBuffer(len);
//
// for (int x=0; x<len; ) {
// aChar = theString.charAt(x++);
// if (aChar == '\\') {
// aChar = theString.charAt(x++);
// if (aChar == 'u') {
// // Read the xxxx
// int value=0;
// for (int i=0; i<4; i++) {
// aChar = theString.charAt(x++);
// switch (aChar) {
// case '0': case '1': case '2': case '3': case '4':
// case '5': case '6': case '7': case '8': case '9':
// value = (value << 4) + aChar - '0';
// break;
// case 'a': case 'b': case 'c':
// case 'd': case 'e': case 'f':
// value = (value << 4) + 10 + aChar - 'a';
// break;
// case 'A': case 'B': case 'C':
// case 'D': case 'E': case 'F':
// value = (value << 4) + 10 + aChar - 'A';
// break;
// default:
// throw new IllegalArgumentException(
// "Malformed \\uxxxx encoding.");
// }
// }
// outBuffer.append((char)value);
// } else {
// if (aChar == 't') aChar = '\t';
// else if (aChar == 'r') aChar = '\r';
// else if (aChar == 'n') aChar = '\n';
// else if (aChar == 'f') aChar = '\f';
// outBuffer.append(aChar);
// }
// } else
outBuffer.append(theString);
// }
return outBuffer.toString();
}

/**
*
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: 鍝堝皵婊ㄥ晢涓氬ぇ瀛?lt;/p>
*
* @author Onlyfor_love
* @version 1.0
*/

private String saveConvert(String theString, boolean escapeSpace) {
//璇ュ姛鑳戒富瑕佹槸灝嗗瓨鍌╧ey鍜寁alue錛屽洜涓轟腑鏂囩殑瀛樺偍鍦ㄥ師鏉ョ殑properties綾諱腑琚漿鎹㈡垚浜嗗埆鐨勭紪鐮?br> //瀛樺偍鐨勪腑鏂囧湪*.properties鏂囦歡涓互涔辯爜鍑虹幇
int len = theString.length();
StringBuffer outBuffer = new StringBuffer(len*2);
outBuffer.append(theString);

// for(int x=0; x<len; x++) {
// char aChar = theString.charAt(x);
// switch(aChar) {
// case ' ':
// if (x == 0 || escapeSpace)
// outBuffer.append('\\');
//
// outBuffer.append(' ');
// break;
// case '\\':outBuffer.append('\\'); outBuffer.append('\\');
// break;
// case '\t':outBuffer.append('\\'); outBuffer.append('t');
// break;
// case '\n':outBuffer.append('\\'); outBuffer.append('n');
// break;
// case '\r':outBuffer.append('\\'); outBuffer.append('r');
// break;
// case '\f':outBuffer.append('\\'); outBuffer.append('f');
// break;
// default:
//
// if ((aChar < 0x0020) || (aChar > 0x007e)) {
// outBuffer.append('\\');
// outBuffer.append('u');
// outBuffer.append(toHex((aChar >> 12) & 0xF));
// outBuffer.append(toHex((aChar >> 8) & 0xF));
// outBuffer.append(toHex((aChar >> 4) & 0xF));
// outBuffer.append(toHex( aChar & 0xF));
// } else {
// if (specialSaveChars.indexOf(aChar) != -1)
// outBuffer.append('\\');
// outBuffer.append(aChar);
// }
// }
// }
return outBuffer.toString();
}

/**
* Calls the <code>store(OutputStream out, String header)</code> method
* and suppresses IOExceptions that were thrown.
*
* @deprecated This method does not throw an IOException if an I/O error
* occurs while saving the property list. As of the Java 2 platform v1.2, the preferred
* way to save a properties list is via the <code>store(OutputStream out,
* String header)</code> method.
*
* @param out an output stream.
* @param header a description of the property list.
* @exception ClassCastException if this <code>Properties</code> object
* contains any keys or values that are not <code>Strings</code>.
*/
public synchronized void save(OutputStream out, String header) {
try {
store(out, header);
} catch (IOException e) {
}
}

public synchronized void store(OutputStream out, String header)
throws IOException
{
BufferedWriter awriter;
awriter = new BufferedWriter(new OutputStreamWriter(out, "GBK"));
if (header != null)
writeln(awriter, "#" + header);
writeln(awriter, "#" + new Date().toString());
for (Enumeration e = keys(); e.hasMoreElements();) {
String key = (String)e.nextElement();
String val = (String)get(key);
key = saveConvert(key, false);

/* No need to escape embedded and trailing spaces for value, hence
* pass false to flag.
*/
val = saveConvert(val, false);
writeln(awriter, key + "=" + val);
}
awriter.flush();
}

private static void writeln(BufferedWriter bw, String s) throws IOException {
bw.write(s);
bw.newLine();
}

public String getProperty(String key) {
Object oval = super.get(key);
String sval = (oval instanceof String) ? (String)oval : null;
return ((sval == null) && (defaults != null)) ? defaults.getProperty(key) : sval;
}

public String getProperty(String key, String defaultValue) {
String val = getProperty(key);
return (val == null) ? defaultValue : val;
}

public Enumeration propertyNames() {
Hashtable h = new Hashtable();
enumerate(h);
return h.keys();
}

public void list(PrintStream out) {
out.println("-- listing properties --");
Hashtable h = new Hashtable();
enumerate(h);
for (Enumeration e = h.keys() ; e.hasMoreElements() ;) {
String key = (String)e.nextElement();
String val = (String)h.get(key);
if (val.length() > 40) {
val = val.substring(0, 37) + "...";
}
out.println(key + "=" + val);
}
}

public void list(PrintWriter out) {
out.println("-- listing properties --");
Hashtable h = new Hashtable();
enumerate(h);
for (Enumeration e = h.keys() ; e.hasMoreElements() ;) {
String key = (String)e.nextElement();
String val = (String)h.get(key);
if (val.length() > 40) {
val = val.substring(0, 37) + "...";
}
out.println(key + "=" + val);
}
}

private synchronized void enumerate(Hashtable h) {
if (defaults != null) {
defaults.enumerate(h);
}
for (Enumeration e = keys() ; e.hasMoreElements() ;) {
String key = (String)e.nextElement();
h.put(key, get(key));
}
}

private static char toHex(int nibble) {
return hexDigit[(nibble & 0xF)];
}

/** A table of hex digits */
private static final char[] hexDigit = {
'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'
};
}


/////////////////////////////////////////////////////////////////
鐒跺悗鍐欎竴涓父鐢ㄧ殑閰嶇疆鏂囦歡鎿嶄綔綾伙細
package xiaotang.util;
import java.io.*;

public class writeToProperty {
private String fileName;
private PropertiesExt prop = new PropertiesExt();
private InputStream fileStream = null;
private OutputStream outStream = null;
/**
*鏋勯犲嚱鏁?br> * @param fileName 鏂囦歡鍚嶅瓧錛屽寘鍚礬寰?br> */
public writeToProperty(String fileName) {
this.fileName = fileName;
}

//璇誨彇鏂囦歡錛屼笉瀛樺湪鍒欏垱寤烘枃浠?br> private void readFile() {
try {
File f = new File(fileName);
fileStream = new FileInputStream(f);
prop.load(fileStream);
}
catch (Exception e) {
e.printStackTrace();
}
finally {
try {
if (fileStream != null)
fileStream.close();
}
catch (IOException ex) {
ex.printStackTrace();
}
}

}

private void writeFile() {
try {
File f = new File(fileName);
outStream = new FileOutputStream(f);
}
catch (Exception e) {
e.printStackTrace();
}
}

/**
* 榪斿洖鎸囧畾key鐨剉laue
* @param key
* @return
*/
public String getValue(String key) {
readFile();
if (key != null && !key.equals(""))
return prop.getProperty(key);
else
return "";
}

/**
*榪斿洖鎸囧畾key鐨剉laue,濡傛灉key涓嶅瓨鍦ㄥ垯榪斿洖defaultValue鍊?br> * @param key
* @param defaultValue
* @return
*/
public String getValue(String key, String defaultValue) {
if (key != null && !key.equals(""))
return prop.getProperty(key, defaultValue);
else
return "";
}

/**
* 璁劇疆瀵瑰簲key鐨勬暟鍊鹼紝濡傛灉key瀛樺湪鐨勮鐩杤alue鐨勬暟鍊鹼紝濡傛灉key涓嶅瓨鍒欏垱寤?br> * @param key
* @param value
*/
public void setValue(String key, String value) {
readFile();
writeFile();
prop.setProperty(key, value);
try {
prop.store(outStream, "GBK");
}
catch (IOException ex) {
ex.printStackTrace();
}
finally {
try {
outStream.close();
}
catch (IOException ex1) {
ex1.printStackTrace();
}
}
}
}
////////////////////////////////////////////////////////////
鎺ョ潃鍐欎竴涓祴璇曠被灝卞彲浠ヤ簡錛?br> package xiaotang.util;

import xiaotang.util.PropertiesExt;
import java.io.*;
/**
*
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: 鍝堝皵婊ㄥ晢涓氬ぇ瀛?lt;/p>
*
* @author Onlyfor_love
* @version 1.0
*/
public class PropertyFile {
public static void main(String[] args) {
writeToProperty wt = new writeToProperty("d:\\config1.properties");
wt.setValue("涓","鎴戞槸璋侊紵");
wt.setValue("浜?,"鎴戞槸闄堟檽媯?);
String one = wt.getValue("涓");
String two = wt.getValue("浜?);
System.out.println(one);
System.out.println(two);
}

}
鍥炲ご浣犲啀鐪嬬湅浣犵殑閰嶇疆鏂囦歡錛屼腑鏂囦緷鐒舵槸涓枃銆?br>

]]>
鍦‥clipse3.1涓浣曢厤緗甃omboz3.1http://www.aygfsteel.com/rickhunter/articles/13687.html鍗冨北楦熼緇?/dc:creator>鍗冨北楦熼緇?/author>Wed, 21 Sep 2005 14:08:00 GMThttp://www.aygfsteel.com/rickhunter/articles/13687.htmlhttp://www.aygfsteel.com/rickhunter/comments/13687.htmlhttp://www.aygfsteel.com/rickhunter/articles/13687.html#Feedback4http://www.aygfsteel.com/rickhunter/comments/commentRss/13687.htmlhttp://www.aygfsteel.com/rickhunter/services/trackbacks/13687.html鍙傝冩垜鍦╟sdn涓婄殑blog涓婄殑鏂囩珷



]]>
鍦‥clipse3.1涓浣曚嬌鐢↙omboz3.1寮鍙慗SPhttp://www.aygfsteel.com/rickhunter/articles/13686.html鍗冨北楦熼緇?/dc:creator>鍗冨北楦熼緇?/author>Wed, 21 Sep 2005 14:07:00 GMThttp://www.aygfsteel.com/rickhunter/articles/13686.htmlhttp://www.aygfsteel.com/rickhunter/comments/13686.htmlhttp://www.aygfsteel.com/rickhunter/articles/13686.html#Feedback3http://www.aygfsteel.com/rickhunter/comments/commentRss/13686.htmlhttp://www.aygfsteel.com/rickhunter/services/trackbacks/13686.html鍙傝冩垜鍦╟sdn涓婄殑blog涓婄殑鏂囩珷銆?/a>



]]>
鍦‥clipse3.1涓浣曚嬌鐢↙omboz3.1寮鍙憇trutshttp://www.aygfsteel.com/rickhunter/articles/13685.html鍗冨北楦熼緇?/dc:creator>鍗冨北楦熼緇?/author>Wed, 21 Sep 2005 14:01:00 GMThttp://www.aygfsteel.com/rickhunter/articles/13685.htmlhttp://www.aygfsteel.com/rickhunter/comments/13685.htmlhttp://www.aygfsteel.com/rickhunter/articles/13685.html#Feedback11http://www.aygfsteel.com/rickhunter/comments/commentRss/13685.htmlhttp://www.aygfsteel.com/rickhunter/services/trackbacks/13685.html     鍦╡clipse2.0鏃惰繕鏈変竴涓猠asystruts鐨勬彃浠訛紝榪涘叆3.0錛屽氨鎵句笉鍒扮畝鍗曞ソ鐢ㄧ殑鍏嶈垂鎻掍歡浜嗐傚湪緗戜笂緇忓父鐪嬪埌鏈変漢闂槸鍚﹀彲浠ョ敤lomboz寮鍙憇truts錛岃屽洖絳斿熀鏈氨涓涓細榪樻槸鐢╩yeclipse鍚с?br>     lomboz娌℃湁鐩存帴闆嗘垚struts錛屽洜姝ゅ湪浣跨敤鏃訛紝鏃犳硶鍍弇yeclipse閭f牱鐩磋銆?br>     鍥犳錛屾垜浠厛瑕佷笅涓涓猻truts錛屾垜涓嬬殑鏄痵truts-1.2.7--姣旇緝鏂扮殑鐗堟湰銆傝В鍘嬪埌鏈湴鏂囦歡澶逛腑灝卞彲浠ヤ簡銆?br>    
    eclipse閰嶇疆lomboz鍙弬鑰冩垜鐩稿叧鐨勬枃绔犮?br>     鐩稿叧struts璇風湅鐩稿叧涔︾睄銆?br>    
    1銆佹柊寤洪」鐩?
    Snap1.jpg
   
    Snap2.jpg

    Snap3.jpg

    Snap4.jpg

    2銆佹帴鐫錛屾垜浠瀵煎叆struts浜嗭紝棣栧厛瀵煎叆鍚庣紑鍚嶄負tld鐨勬枃浠訛紝榪欎簺鏂囦歡鍦ㄥ垰鍒氳В鍘嬬殑struts鏂囦歡涓嬬殑lib鏂囦歡澶逛腑銆?br>     Snap5.jpg

    Snap6.jpg

    Snap7.jpg

    Snap8.jpg

    Snap9.jpg

    Snap10.jpg

    3銆佸鍏ar鍖咃紝榪欎簺鍖呬篃鍦ㄥ垰鍒氶偅涓枃浠跺す涓嬨?br>    
    Snap11.jpg

    Snap12.jpg
    瀵煎叆鐨刯ar鍖呭湪lib涓嬪彲浠ョ湅鍒般?br>
    4銆佹柊寤篽ello.jsp鏂囦歡銆?br>    
    Snap13.jpg

    Snap14.jpg

    榪欓噷涓轟簡嫻嬭瘯鏂逛究錛屾墍浠ラ夊垯琛屽彿銆?br>     Snap16.jpg

    hello.jsp鐨勪唬鐮侊細
    Snap17.jpg
   

    5銆佸垱寤篐elloForm.java銆?br>
    Snap18.jpg
   
    鍥犱負HelloForm.java緇ф壙ActionForm綾匯傛墍浠ュ湪superclass涓閫夋嫨ActionForm綾匯?br>     Snap19.jpg

    Snap20.jpg

    HelloForm.java浠g爜錛?br>     Snap21.jpg
   
    6銆佸悓鐞嗗垱寤篜ersonBean.java錛孋onstants.java,HelloAction.java銆備唬鐮佸涓嬶細
   
    Snap22.jpg

    Snap23.jpg

    Snap24.jpg

    7銆佸皢緗戦〉鎵闇鐨勫浘鐗囨嫹鍒扮浉搴旂殑鏂囦歡澶逛腑銆?br>     Snap25.jpg
      
    8銆佸垱寤篴pplication.properties銆?br>
    Snap28.jpg
   
    浠g爜錛?br>     Snap27.jpg
   
    9銆佸垱寤簊truts-config.xml鏂囦歡銆?br>
    Snap30.jpg

    浠g爜錛?br>    
    Snap29.jpg

    10銆佷慨鏀箇eb.xml鏂囦歡銆備唬鐮侊細
      
    Snap31.jpg

    12銆佽繍琛屾湇鍔″櫒錛?br>    
    Snap33.jpg

    Snap34.jpg

    緇撴灉鍑烘潵:
   
    Snap39.jpg
   

   

   




]]>
主站蜘蛛池模板: 莆田市| 饶平县| 通山县| 互助| 怀仁县| 兴城市| 凤城市| 张掖市| 沈丘县| 鸡泽县| 彝良县| 阳高县| 庆云县| 安多县| 根河市| 福安市| 威远县| 子洲县| 阳城县| 武安市| 永嘉县| 靖江市| 江西省| 仙桃市| 丹阳市| 洪湖市| 明溪县| 吉林市| 札达县| 洱源县| 泸溪县| 灯塔市| 布尔津县| 瓦房店市| 皮山县| 清流县| 郴州市| 勐海县| 仪征市| 焦作市| 改则县|