锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲视频在线免费观看,亚洲JLZZJLZZ少妇,亚洲日产韩国一二三四区http://m.tkk7.com/scorpio_leon/archive/2006/06/10/51877.html鏉庢潕鏉庢潕Sat, 10 Jun 2006 11:16:00 GMThttp://m.tkk7.com/scorpio_leon/archive/2006/06/10/51877.htmlhttp://m.tkk7.com/scorpio_leon/comments/51877.htmlhttp://m.tkk7.com/scorpio_leon/archive/2006/06/10/51877.html#Feedback0http://m.tkk7.com/scorpio_leon/comments/commentRss/51877.htmlhttp://m.tkk7.com/scorpio_leon/services/trackbacks/51877.html涓轟簡(jiǎn)闄嶄綆渚靛叆鎬э紝鏇村ソ鐨勮寮曠敤錛屽bba96鏍稿績(jī)閮ㄥ垎榪涜浜?jiǎn)澶ч噺閲嶆瀯锛屽幓闄や簡(jiǎn)鍐楄禈鐨勫眰娆′笌涓嶅繀瑕佺殑鎺ュ彛锛岒q跺熷姪jdk5.0鑼冨瀷榪涜浜?jiǎn)浠g爜绮窘巰銆傚彂甯冧簡(jiǎn)bba96 tiger beta2錛岃繖涓増鏈凡緇忔槸姣旇緝紼沖畾鐨勭増鏈紝鍏蜂綋鐨勬敼鍔ㄥ涓?br />

  • 鍘婚櫎鎵鏈夌殑鎺ュ彛渚濊禆錛屽彲鐩存帴鍦ㄤ換浣曢」鐩腑鐩存帴璋冪敤
  • service鐨勪袱灞傚悎騫朵負(fù)涓灞備笖鍘婚櫎service灞傜殑鎺ュ彛錛屼絾DAO鏇句粛淇濈暀鎺ュ彛浠ュ鎵╁睍鏇村鐨刼rm瀹炵幇
  • 澧炲姞sql execute鐨勬柟娉?
  • 澧炲己婧愯嚜view鐨勭洿鎺ユ煡璇㈣兘鍔?
  • 鍙傛暟鍚嶇敱鍘熸潵闅劇湅鐨刼riNames, oriOperators, oriStringValues鏀逛負(fù)鐩磋鐨剆earchName, searchOperator, searchValue
  • 澧炲姞浜?jiǎn)瀵筈ueryParam鐨則oString鍔熻兘錛屽彲鎵撳嚭瀵瑰簲鐨剆ql錛屼究浜庤皟璇曪紝鍙傝com.bba96.tiger.util.QueryWebUtils鐨刴ain鍑芥暟

涓嬭澆欏甸潰鍦板潃錛?a >https://bba96.dev.java.net/servlets/ProjectDocumentList?folderID=4149&expandFolder=4149&folderID=0

濡傛灉浣犱嬌鐢╯pring+hibernate錛岃屽張涓嶅枩嬈ibernate criteria鐨勯夯鐑?chǔ)锛屼笉濡疂璇曚竴涓媌ba96錛屼綘鍙互鎶婁富瑕佺簿鍔涙斁鍒頒笟鍔℃柟闈€侱efaultEntityManager鎻愪緵浜?jiǎn)寰堝鍗曞眰閫昏緫鐨勪究鍒╂柟娉曠粰浣犱嬌鐢紝鍏朵腑涔熷寘鎷墽琛宧sql鎴栬卻ql鏌ヨ/鏇存柊鐨勬柟娉曪紝濡傛灉浣犺澶氬眰嬈¢昏緫鐨勬潯浠舵煡璇㈠彲浠ヨ嚜宸辯粍瑁匭ueryObject錛屽弬瑙乧om.bba96.tiger.util.QueryWebUtils鐨刴ain鍑芥暟銆俠ba96榪樻彁渚涚粰浣犲湪view灞傝嚜鐢卞鍔犳煡璇㈢殑鑳藉姏銆?br />
tiger鐗堟湰浠呮彁渚涗簡(jiǎn)dao/service閮ㄥ垎錛屾墍浠ュ鏋滀綘甯屾湜鍦╲iew 鏌ヨ鐨勫畨鍏ㄦф柟闈㈠緱鍒板姞寮猴紝鍙弬鑰僢ba96 2.0鍏朵腑鐨剋ebwork view閮ㄥ垎錛屾潈闄愰儴鍒嗕篃娌℃湁鍖呭惈鍦╰iger涓紝甯屾湜灝藉揩鎶婂寘鎷緥瀛愮殑鏉冮檺閮ㄥ垎榪佺Щ榪囨潵錛屼絾榪橀渶瑕佷竴鐐規(guī)椂闂達(dá)紝鏈榪戝湪蹇欎竴涓狢MS鐨勪駭鍝侊紝鏃墮棿涓嶅鐢ㄥ晩鈥︹?/p>

鍦?a class="" title="鏄ュぉ鐨勬梺杈? target="_blank">SpringSide欏圭洰涓瓀ebwork MVC閮ㄥ垎搴旂敤鍒癰ba96 tiger瀵箆iew閮ㄥ垎鐨勬煡璇紝鏈夊叴瓚e彲浠ョ湅鐪嬶紝榪欓噷涔熻鎺ㄨ崘涓涓?a class="" title="鏄ュぉ鐨勬梺杈? target="_blank">SpringSide錛岀‘瀹炴湁寰堝寰堝ソ鐨勭粡楠屽湪閲岄潰鍙互鍊熼壌銆?/p>

鏉庢潕 2006-06-10 19:16 鍙戣〃璇勮
]]>
bba96 蹇熷紑鍙戞鏋?鍙戝竷2.0 RC1http://m.tkk7.com/scorpio_leon/archive/2006/03/08/34169.html鏉庢潕鏉庢潕Tue, 07 Mar 2006 17:24:00 GMThttp://m.tkk7.com/scorpio_leon/archive/2006/03/08/34169.htmlhttp://m.tkk7.com/scorpio_leon/comments/34169.htmlhttp://m.tkk7.com/scorpio_leon/archive/2006/03/08/34169.html#Feedback0http://m.tkk7.com/scorpio_leon/comments/commentRss/34169.htmlhttp://m.tkk7.com/scorpio_leon/services/trackbacks/34169.htmlbba96 CHANGELOG
==========================
http://bba96.dev.java.net

Changes in version 2.0 alpha3 (2006.4.3)
*fix action query parameters bug -- [XXX:...]
*fix distinct bug (discard Criteria.DISTINCT_ROOT_ENTITY)
*some minor improvement

Changes in version 2.0 alpha2.2 (2006.3.16)
*update webwork's jar for fixing example bug in weblogic
*remove all contentType setting in example

Changes in version 2.0 alpha2.1 (2006.3.8)
*fix example bug
*update readme.txt

Changes in version 2.0 alpha1 (2006.3.7)
*webwork 2.2 support
*hibernate 3.x support, then support native sql
*fix some bug
*add aop security module
*add action query parameters validation
*enhance action query parameters management
*support more logic in action query
*support multi orderby property


Changes in version 1.0 (2005.09.23)
*release first


婧愮爜涓嬭澆錛堝寘鍚袱涓揩閫熷紑鍙戠殑渚嬪瓙銆傦級(jí)
https://bba96.dev.java.net/servlets/ProjectDocumentList?folderID=4149&expandFolder=4149&folderID=0

綆浠嬪弬瑙?a href="/scorpio_leon/archive/2005/11/09/18878.aspx">http://m.tkk7.com/scorpio_leon/archive/2005/11/09/18878.aspx



鏉庢潕 2006-03-08 01:24 鍙戣〃璇勮
]]>
鎱庣敤Webwork鐨刧etText錛屼嬌鐢ㄤ笉褰撴晥鐜囧彲鑳戒細(xì)寰堜綆http://m.tkk7.com/scorpio_leon/archive/2006/01/21/28871.html鏉庢潕鏉庢潕Sat, 21 Jan 2006 05:26:00 GMThttp://m.tkk7.com/scorpio_leon/archive/2006/01/21/28871.htmlhttp://m.tkk7.com/scorpio_leon/comments/28871.htmlhttp://m.tkk7.com/scorpio_leon/archive/2006/01/21/28871.html#Feedback0http://m.tkk7.com/scorpio_leon/comments/commentRss/28871.htmlhttp://m.tkk7.com/scorpio_leon/services/trackbacks/28871.html
java doc 濡備笅

Finds a localized text message for the given key, aTextName. Both the key and the message itself is evaluated as required. The following algorithm is used to find the requested message:

  1. Look for message in aClass' class hierarchy.
    1. Look for the message in a resource bundle for aClass
    2. If not found, look for the message in a resource bundle for any implemented interface
    3. If not found, traverse up the Class' hierarchy and repeat from the first sub-step
  2. If not found and aClass is a ModelDriven Action, then look for message in the model's class hierarchy (repeat sub-steps listed above).
  3. If not found, look for message in child property. This is determined by evaluating the message key as an OGNL expression. For example, if the key is user.address.state, then it will attempt to see if "user" can be resolved into an object. If so, repeat the entire process fromthe beginning with the object's class as aClass and "address.state" as the message key.
  4. If not found, look for the message in aClass' package hierarchy.
  5. If still not found, look for the message in the default resource bundles.
  6. Return defaultMessage

涓昏灝辨槸鏌ユ壘resource bundle錛屼笅闈㈣鏄庝竴涓?BR>1. 鍏堟煡鎵捐class錛堜竴鑸垜浠槸鍦╝ction璋冪敤錛屽氨鏄action瀵瑰簲鐨刢lass浜?jiǎn)锛?jí)瀵瑰簲鐨刾roperties鏂囦歡錛屾壘涓嶅埌鍐嶅幓鎵懼搴旂殑鎺ュ彛錛屾壘涓嶅埌鍐嶅幓浠庤class鐨勭戶鎵挎爲(wèi)涓婂幓閲嶅鍓嶉潰鐨勬楠ゃ?BR>2. 濡傛灉鏄疢odelDriver錛屼互涓婃壘涓嶅埌鍐嶄互model鐨刢lass鍘婚噸澶?鐨勬楠?BR>3.緇х畫鎵撅紝濡傛灉key鏄鍚坥gnl琛ㄨ揪寮忚繕浠gnl琛ㄨ揪寮忓幓瑙f瀽綾伙紝濡傛灉鑳芥壘鍒扮被錛岃繕浠ヤ互涓婄殑姝ラ鍘繪煡鎵?BR>4. 榪樻壘涓嶅埌錛屽氨浠庢牴鎹畃ackage浠ュ強(qiáng)package鐨勭戶鎵挎爲(wèi)鍘繪壘錛岃繖榪樺寘鎷簡(jiǎn)璇lass鐨勭戶鎵挎爲(wèi)鎵鏈夌殑class鐨刾ackage鏍?wèi)锛垬q欎竴姝ュ瓨鍦ㄤ簡(jiǎn)澶鐨勯噸澶嶆煡鎵懼伐浣滐紝鍥犱負(fù)寰堝package閮芥槸鐩稿悓鐨勶級(jí)
5 浣跨敤榛樿鐨剅esource bundle

java.util.ResourceBundle铏界劧鏈塩ache錛屼絾鏄痺w涓轟簡(jiǎn)鍑忓皯璋冪敤getResourceBundle鏂規(guī)硶錛屼篃緇存姢浜?jiǎn)涓涓猰iss鐨刪ashset錛屾壘涓嶅埌鐨刡undle name灝變涪榪涘幓錛岄偅涔堟瘡涓嬈℃煡鎵鵑兘鍚屾浜?jiǎn)杩欎釜miss錛屽鏋滃緢澶氭鏌ユ壘錛屽紑閿涔熸槸寰堝ぇ鐨勩?BR>
鎴戝氨涓句竴涓緥瀛愶紝灝辮絎洓姝ユ煡鎵緋ackage鏍?wèi)濂戒?BR>

        // nothing still? alright, search the package hierarchy now
        for (Class clazz = aClass;
             (clazz 
!= null&& !clazz.equals(Object.class);
             clazz 
= clazz.getSuperclass()) {

            String basePackageName 
= clazz.getName();
            
while (basePackageName.lastIndexOf('.'!= -1) {
                basePackageName 
= basePackageName.substring(0, basePackageName.lastIndexOf('.'));
                String packageName 
= basePackageName + ".package";
                msg 
= getMessage(packageName, locale, aTextName, valueStack, args);

                
if (msg != null) {
                    
return msg;
                }

                
if (indexedTextName != null) {
                    msg 
= getMessage(packageName, locale, indexedTextName, valueStack, args);

                    
if (msg != null) {
                        
return msg;
                    }
                }
            }
        }

鍋囪浣犵殑action緇ф壙鏍?wèi)鏄瘶q欐牱
com.bba96.core.webwork.actions.DefaultActionSupport
com.xxxx.web.actions.XXXActionSupport
com.xxxx.web.user.actions.UserAction
com.xxxx.web.user.ViewUserAction
涓斾笉璇磜w娌℃湁鍒ゆ柇鏄惁鏄痗om.opensymphony.xwork.ActionSupport鎴栬厀w鐨勬帴鍙e氨鍋滄錛屽厜鏄嚜宸辯殑緇ф壙鏍?wèi)锛尀鏄?+3+3+3=13嬈★紝鍐嶅姞涓婂線涓婄殑緇ф壙鏍?wèi)浠ュ強(qiáng)瀵瑰簲鐨勬帴鍙eQ宑om.opensymphony.xwork.ActionSupport浠ュ強(qiáng)Action, Validateable, ValidationAware, TextProvider, LocaleProvider, Serializable, ContinuableObject鐨勬帴鍙o紝鏌ユ壘嬈℃暟瓚呰繃30嬈$敋鑷蟲洿澶氾紝榪欓噷鐨勬瘡涓嬈¢兘鏈変竴涓悓姝iss鐨勮繃紼嬶紝寮閿鐩稿綋澶с?BR>
濡傛灉浣犵殑key鎵鍦ㄧ殑resource bundle娌℃湁瀵瑰簲鍒板悎閫傜殑class鎴杙ackage鏃訛紝渚嬪璇存斁鍦ㄤ簡(jiǎn)default bundle涓紝ww浼?xì)娴垂寰堝鏃堕棿銆傝繖縐嶆儏鍐典笅錛屾垜鍦ㄦ病鏈夊茍鍙戠殑鏃跺欐祴浜?jiǎn)涓涓嬶紝涓嬈etText澶ф鑰楁椂40ms宸﹀彸

鎵浠ュ湪瀹為檯搴旂敤鎴戜滑搴旇閬垮厤榪欑鎯呭喌鍑虹幇錛岃涓嶈resource bundle涓涓瀵瑰簲class錛岃涓嶅氨鑷繁瀹炵幇涓涓畝鍗曠殑getText錛屽叾瀹炶鏄痺w鐨凙ctionSupport鐨則extProvider鍏佽鏀瑰彉灝辨渶濂戒簡(jiǎn)銆?/P>

鏉庢潕 2006-01-21 13:26 鍙戣〃璇勮
]]>
Webwork2.2鐨勪竴涓敼榪涳紝Validation/Workflow Interceptor澧炲姞excludeMethods鏂規(guī)硶http://m.tkk7.com/scorpio_leon/archive/2005/12/03/22374.html鏉庢潕鏉庢潕Sat, 03 Dec 2005 14:29:00 GMThttp://m.tkk7.com/scorpio_leon/archive/2005/12/03/22374.htmlhttp://m.tkk7.com/scorpio_leon/comments/22374.htmlhttp://m.tkk7.com/scorpio_leon/archive/2005/12/03/22374.html#Feedback2http://m.tkk7.com/scorpio_leon/comments/commentRss/22374.htmlhttp://m.tkk7.com/scorpio_leon/services/trackbacks/22374.html涓涓緥瀛愶紝鍘熸潵鐨?/P>
<interceptor-ref name="validation"/>
<interceptor-ref name="workflow"/>

鍙敼鍐欎負(fù)
<interceptor-ref name="validation">
    <param name="excludeMethods">input,back,cancel</param>
</interceptor-ref>
<interceptor-ref name="workflow">
    <param name="excludeMethods">input,back,cancel</param>
</interceptor-ref>

閭d箞錛屽浜庣畝鍗曠殑闇楠岃瘉欏甸潰錛屼笉闇瑕佸啀鍥犱負(fù)閬垮厤涓嶅繀瑕佺殑鏍¢獙鑰屽垎涓や釜action銆?BR>
鍙湁com.opensymphony.xwork.validator.ValidationInterceptor, com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor 瀹氫箟騫跺疄鐜頒簡(jiǎn)榪欎釜excludeMethods錛屽疄鐜扮殑涔熻繕鏄瘮杈冪矖緋欑殑錛屾垜浠湪鍋氱被浼煎疄鐜扮殑鏃跺欏彲浠ュ弬鑰冧竴涓嬶紝鏈夊繀瑕佷篃鍙互鏀硅繘錛屾墿灞曚竴涓嬶紝渚嬪澧炲姞includeMethods
    public void setExcludeMethods(String excludeMethods) {
        
this.excludeMethods = TextParseUtil.commaDelimitedStringToSet(excludeMethods);
    }

    
public String intercept(ActionInvocation invocation) throws Exception {
        
if (excludeMethods.contains(invocation.getProxy().getMethod())) {
            log.debug(
"Skipping workflow. Method found in exclude list.");
            
return invocation.invoke();
        }
        
    }


鏉庢潕 2005-12-03 22:29 鍙戣〃璇勮
]]>
BBA96 鏇存柊鑷?RC1http://m.tkk7.com/scorpio_leon/archive/2005/11/18/20361.html鏉庢潕鏉庢潕Fri, 18 Nov 2005 01:37:00 GMThttp://m.tkk7.com/scorpio_leon/archive/2005/11/18/20361.htmlhttp://m.tkk7.com/scorpio_leon/comments/20361.htmlhttp://m.tkk7.com/scorpio_leon/archive/2005/11/18/20361.html#Feedback0http://m.tkk7.com/scorpio_leon/comments/commentRss/20361.htmlhttp://m.tkk7.com/scorpio_leon/services/trackbacks/20361.htmlhttps://bba96.dev.java.net/servlets/ProjectDocumentList?folderID=4149&expandFolder=4149&folderID=0
淇涓澶刡atchRemove鐨刡ug錛?BR>灝哸ction鐨勪笌鎸佷箙鍖栫浉鍏崇殑鏂規(guī)硶錛屼互鍙?qiáng)getResults鏂規(guī)硶淇濇姢璧鋒潵
娣誨姞浜?jiǎn)涓涓狟ook example. 鍖呮嫭綆鍗曠敤鎴風(fēng)鐞嗭紝涔︾睄鐨勬煡璇笌縐熷熴?BR>Book Example 鍙傝 http://book.bba96.com
Advanced Example 鍙傝 http://www.gopherbook.com




鏉庢潕 2005-11-18 09:37 鍙戣〃璇勮
]]>
鍩轟簬hibernate/spring鐨勫惈RBAC鏉冮檺妯″潡鐨勫揩閫熷紑鍙戞鏋?鐩墠涓巜ebwork鏁村悎) http://m.tkk7.com/scorpio_leon/archive/2005/11/09/18878.html鏉庢潕鏉庢潕Tue, 08 Nov 2005 16:51:00 GMThttp://m.tkk7.com/scorpio_leon/archive/2005/11/09/18878.htmlhttp://m.tkk7.com/scorpio_leon/comments/18878.htmlhttp://m.tkk7.com/scorpio_leon/archive/2005/11/09/18878.html#Feedback40http://m.tkk7.com/scorpio_leon/comments/commentRss/18878.htmlhttp://m.tkk7.com/scorpio_leon/services/trackbacks/18878.html婧愭枃浠朵笅杞?br />https://bba96.dev.java.net/servlets/ProjectDocumentList?folderID=4149&expandFolder=4149&folderID=0


1. 鏍稿績(jī)鎸佷箙灞傞儴鍒嗗熀浜巗pring/hibernate錛屽疄鐜板己澶х伒媧葷殑鍔ㄦ乹uery鍔熻兘錛屽彲鐙珛浣跨敤銆?br />2. 鏉冮檺閮ㄥ垎錛屽熀浜嶳BAC錛屾敮鎸佹暟鎹潈闄愶紝渚濊禆1閮ㄥ垎鐨勬帴鍙c?br />3. Action灞傦紝鍩轟簬1浠ュ強(qiáng)webwork錛岃壇濂芥灦鏋勶紝鍑忓皯澶ч噺浠g爜錛屾敮鎸乿iew鐏墊椿榪涜query涓旀湁鍙傛暟鏁欓獙鏀寔淇濊瘉瀹夊叏鎬с?br />
綆鍗曡bba96灝辨槸鍩轟簬hibernate/spring鐨勫揩閫熷紑鍙戞鏋訛紝鍏朵腑鍖呭惈浜?jiǎn)瀵笻ibernate Critiera錛孭rojection鐨勫皝瑁咃紝閫氳繃涓涓己澶ц岀伒媧葷殑QueryObject瀵硅薄錛屾柟渚垮姩鎬佹坊鍔犱笌鍒犻櫎鏉′歡銆?br />閫氳繃緇熶竴鐨剄uery涓庢暟鎹簱浜や簰錛屾柟渚緼OP錛屽叾涓殑RBAC鏉冮檺妯″潡錛堟敮鎸佹暟鎹潈闄愶級(jí)鍗蟲槸閫氳繃AOP鎿嶄綔Q(jìng)ueryObject瀵硅薄鏉ュ疄鐜扮殑銆俠ba96鏍稿績(jī)鍙互璺熸祦琛岀殑view鏁村悎錛岀洰鍓嶅彧鏈墂ebwork鏁村悎鐨勭増鏈?br />
bba96 涓嶅啀闇瑕佽嚜宸卞啓DAO/SERVICE錛屽熷姪綆鍗曠殑spring ioc鍗沖彲閰嶇疆浣跨敤緙虹渷DAO/SERVICE錛岃屼笖閫氳繃鐏墊椿鏂逛究錛屾槗鎵╁睍鐨勫悗鍙版寔涔呭眰涓巜ebwork鐨勬暣鍚堬紝瀹屽叏瀹炵幇浜?jiǎn)蹇熷紑鍙戠殑鐩殑銆?br />

Get Up And Running Quick

Example:
聽聽 (1) enter the example/simple or emample/book folder.
聽聽聽聽聽聽 NOTE:all following operation is under the folder you entered
聽聽 (2) copy your JDBC driver (default mysql) to the lib directory
聽聽聽聽聽聽 -- webapps\ROOT\WEB-INF\lib
聽聽 (3) edit hibernate.properties for database info (default mysql)
聽聽聽聽聽聽 -- src\main\java\hibernate.properties
聽聽 (4) run "ant"
聽聽 (5) create database via the sql script generated at database\schema-export.sql
聽聽 (6) edit applicationContext.xml for database info (default mysql)
聽聽聽聽聽聽 -- webapps\ROOT\WEB-INF\applicationContext.xml (line 5 - 21)
聽聽 (7) start server and see this example


鏈変嬌鐢ㄤ笂鐨勮璁猴紝璇瘋仈緋繪垜 MSN: hotmail鐨勫笎鍙穝corpio_leon


鏉庢潕 2005-11-09 00:51 鍙戣〃璇勮
]]>
寮濮嬪皾璇?Webwork 2.2, 涓浜涘鏄撳嚭閿欑殑鍦版柟 -- 鎸佺畫鏇存柊http://m.tkk7.com/scorpio_leon/archive/2005/10/19/15933.html鏉庢潕鏉庢潕Wed, 19 Oct 2005 07:36:00 GMThttp://m.tkk7.com/scorpio_leon/archive/2005/10/19/15933.htmlhttp://m.tkk7.com/scorpio_leon/comments/15933.htmlhttp://m.tkk7.com/scorpio_leon/archive/2005/10/19/15933.html#Feedback0http://m.tkk7.com/scorpio_leon/comments/commentRss/15933.htmlhttp://m.tkk7.com/scorpio_leon/services/trackbacks/15933.html
  • 濡傛灉浣犵敤hibernate+spring錛屾敞鎰弒pring鐨凮penSessionInView鐨凢ilter瑕佸湪webwork鐨凢ilter涔嬪墠
  • ww:property榪欎釜tag緙虹渷鏄痚scape html鐨勶紝鍦╰ag鍙互鎸囧畾escape="false"閬垮厤html瀛楃杞箟
  • 涓浜涘師鏉ョ敤鍗曞紩鍙瘋〃紺哄瓧絎︿覆鐨勯兘瑕佸幓鎺夊崟寮曞彿錛屼緥濡?" 'test' "  瑕佹敼涓?"test"
  • No object in the CompoundRoot has a property named錛岃繖鏄敱浜庡湪webwork.properties璁劇疆浜?jiǎn)webwork.devMode=true錛屼細(xì)媯(gè)鏌ラ〉闈笂浼犻掕繃鏉ョ殑鍙傛暟鏄惁鍦╝ction瀹氫箟榪囥?/LI>

    鏉庢潕 2005-10-19 15:36 鍙戣〃璇勮
    ]]>Webwork 2.1.7 鐨勪竴涓皬緙洪櫡http://m.tkk7.com/scorpio_leon/archive/2005/10/18/15831.html鏉庢潕鏉庢潕Tue, 18 Oct 2005 10:22:00 GMThttp://m.tkk7.com/scorpio_leon/archive/2005/10/18/15831.htmlhttp://m.tkk7.com/scorpio_leon/comments/15831.htmlhttp://m.tkk7.com/scorpio_leon/archive/2005/10/18/15831.html#Feedback1http://m.tkk7.com/scorpio_leon/comments/commentRss/15831.htmlhttp://m.tkk7.com/scorpio_leon/services/trackbacks/15831.htmlpublic interface ModelDriven {
        Object getModel();
    }

    鑰屾垜闇瑕佺殑鏄?
    public interface ModelDriven {
        Object getModel() 
    throws Exception;
    }

    鍥犱負(fù)瑕佹嫤鎴彲鑳芥姏鍑虹殑寮傚父錛屾祦紼嬫槸榪欐牱service - my service interceptor - action - xwork interceptor
    鐜板湪鏂湪action榪欓噷浜?jiǎn)锛屽緢濂囨紝webwork鍏朵粬鏂規(guī)硶閮芥湁throw exception錛岀嫭鐙繖涓病鏈夛紝闅鵑亾鍙堣hack webwork錛?BR>鎭╋紝鏈変簡(jiǎn)AOP鍚庯紝鎺ュ彛璁捐搴旇瑕佸鑰冭檻涓涓嬶紝鏄惁鍏佽鎶涘嚭寮傚父鈥︹?/P>

    鏉庢潕 2005-10-18 18:22 鍙戣〃璇勮
    ]]>
    綆鍗曞疄鐜板紓姝mail -- Jakarta Common Email 緇撳悎 Opensymphony Quartzhttp://m.tkk7.com/scorpio_leon/archive/2005/10/15/15603.html鏉庢潕鏉庢潕Sat, 15 Oct 2005 14:01:00 GMThttp://m.tkk7.com/scorpio_leon/archive/2005/10/15/15603.htmlhttp://m.tkk7.com/scorpio_leon/comments/15603.htmlhttp://m.tkk7.com/scorpio_leon/archive/2005/10/15/15603.html#Feedback0http://m.tkk7.com/scorpio_leon/comments/commentRss/15603.htmlhttp://m.tkk7.com/scorpio_leon/services/trackbacks/15603.html鐪嬬湅涓嬮潰鐨勫簲鐢ㄤ緥瀛愶紝紼嬪簭鎵ц涓夌鍚庝細(xì)鍦ㄥ悗鍙板紑濮嬪彂Email錛屽彧鏈夊嚑琛岀▼搴忥紝寰堢畝鍗曞惂銆?BR>鏈潵灝卞簲璇ヨ繖涔堢畝鍗曪紝榪樿兘鍐嶇渷涔堬紝鍛靛懙錛岃阿璋㈠紑婧愮殑鍔涢噺鈥︹?BR>

        SimpleEmail email = new SimpleEmail();
        email.addTo(
    "receiver@somemail.com""Receier's Name");
        email.setSubject(
    "Email from www.bba96.com");
        email.setMsg(
    "Hello, guy!");
        EmailScheduler emailScheduler 
    = new EmailScheduler();
        emailScheduler.process(email);

    榪欓噷鐢ㄥ埌浜?A >jakarta common email涓殑SimpleEmail
    EmailScheduler鏄竴涓埄鐢?A >Opensymphony Quartz鍋氱畝鍗曠殑璋冨害錛屽叾涓璄mailJob瀹炵幇浜?jiǎn)Quartz鐨凧ob鎺ュ彛
    浠ヤ笅鏄疎mailScheduler浠ュ強(qiáng)EmailJob婧愪唬鐮併?/P>

    package com.bba96.scheduler;

    import java.util.Date;

    import javax.mail.Authenticator;

    import org.apache.commons.mail.Email;
    import org.quartz.JobDetail;
    import org.quartz.Scheduler;
    import org.quartz.SchedulerException;
    import org.quartz.SchedulerFactory;
    import org.quartz.SimpleTrigger;

    public class EmailScheduler {

        
    public void process(Email email, Authenticator authenticator)
                
    throws SchedulerException {
            
    // TODO if can be optimized with static instance.
            SchedulerFactory schedFact = new org.quartz.impl.StdSchedulerFactory();
            Scheduler sched 
    = schedFact.getScheduler();
            sched.start();

            JobDetail jobDetail 
    = new JobDetail("EmailJob"null, EmailJob.class);
            jobDetail.getJobDataMap().put(EmailJob.EMAIL, email);
            jobDetail.getJobDataMap().put(EmailJob.AUTHENTICATIOR, authenticator);
            
    //Create a trigger that fires exactly once, three seconds from now
            long startTime = System.currentTimeMillis() + 3000L;
            SimpleTrigger trigger 
    = new SimpleTrigger("emailTrigger"null,
                    
    new Date(startTime), null00L);
            sched.scheduleJob(jobDetail, trigger);
        }

        
    public void process(Email email) throws SchedulerException {
            process(email, 
    null);
        }

    }

     

    package com.bba96.scheduler;

    import javax.mail.Authenticator;

    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.apache.commons.mail.DefaultAuthenticator;
    import org.apache.commons.mail.Email;
    import org.apache.commons.mail.EmailException;
    import org.quartz.Job;
    import org.quartz.JobExecutionContext;
    import org.quartz.JobExecutionException;

    public class EmailJob implements Job {

        
    protected final Log logger = LogFactory.getLog(EmailJob.class);

        
    public static String EMAIL = "EMAIL";

        
    public static String AUTHENTICATIOR = "AUTHENTICATIOR";

        
    public static String DEFAULT_HOST = "your smtp mail server";

        
    public static int DEFAULT_SMTP_PORT = 25;

        
    public static String DEFAULT_USER = "yourmail@yourserver.com";

        
    public static String DEFAULT_PASSWORD = "your password";

        
    public static String DEFAULT_FROM_ADDRESS = "yourmail@yourserver.com";

        
    public static String DEFAULT_FROM_NAME = "Your Name";

        
    public void execute(JobExecutionContext context)
                
    throws JobExecutionException {
            Email email 
    = (Email) context.getJobDetail().getJobDataMap().get(EMAIL);
            
    if (email != null) {
                Authenticator authenticator 
    = (Authenticator) context
                        .getJobDetail().getJobDataMap().get(AUTHENTICATIOR);
                
    if (email.getHostName() == null) {
                    email.setHostName(DEFAULT_HOST);
                }
                
    if (email.getSmtpPort() == null) {
                    email.setSmtpPort(DEFAULT_SMTP_PORT);
                }
                
    if (authenticator == null) {
                    authenticator 
    = new DefaultAuthenticator(DEFAULT_USER,
                            DEFAULT_PASSWORD);
                    email.setAuthenticator(authenticator);
                }
                
    if (email.getFromAddress() == null) {
                    
    try {
                        email.setFrom(DEFAULT_FROM_ADDRESS, DEFAULT_FROM_NAME);
                    } 
    catch (EmailException e) {
                        logger.error(
    "Email address invalid", e);
                        
    return;
                    }
                }
                
    try {
                    email.send();
                } 
    catch (EmailException e) {
                    logger.error(
    "Email send error", e);
                }
            }
        }

    }



    鏉庢潕 2005-10-15 22:01 鍙戣〃璇勮
    ]]>
    bba96欏圭洰鍔犲叆鍒癲ev.java.net鐨刯ava-enterprise瀛靛寲鍣?/title><link>http://m.tkk7.com/scorpio_leon/archive/2005/09/25/13966.html</link><dc:creator>鏉庢潕</dc:creator><author>鏉庢潕</author><pubDate>Sat, 24 Sep 2005 17:45:00 GMT</pubDate><guid>http://m.tkk7.com/scorpio_leon/archive/2005/09/25/13966.html</guid><wfw:comment>http://m.tkk7.com/scorpio_leon/comments/13966.html</wfw:comment><comments>http://m.tkk7.com/scorpio_leon/archive/2005/09/25/13966.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://m.tkk7.com/scorpio_leon/comments/commentRss/13966.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/scorpio_leon/services/trackbacks/13966.html</trackback:ping><description><![CDATA[<P>綰康涓涓嬶紝dev.java.net鏁堢巼榪樺彲浠ュ槢錛屽垰鎶婃弿榪?渚嬪瓙鍐欏ソ錛屾彁浜ゆ瘯涓氱敵璇鳳紝甯屾湜涓嬪懆灝辮兘姣曚笟錛屾寮忓姞鍏ava-enterprise涓紝鍛靛懙銆傚洶鈥︹?<A ><BR><BR>http://bba96.dev.java.net</A> <BR>婧愮爜涓嬭澆錛堝寘鍚竴涓揩閫熷紑鍙戠殑渚嬪瓙銆傦級(jí)<BR><A >https://bba96.dev.java.net/servlets/ProjectDocumentList?folderID=4149&expandFolder=4149&folderID=0</A><A ></A><BR>綆鍗曡灝辨槸鍩轟簬hibernate/spring鐨勫揩閫熷紑鍙戞鏋訛紝鍙互璺熸祦琛岀殑mvc鏁村悎錛岀洰鍓嶅彧鏈墂ebwork鏁村悎鐨勭増鏈?BR></P> <P>Bba96 include a flexible and convenient query object by encapsulating the hibernate Criteria and Projections, that make it easy to persist and query data.</P> <P>Bba96's query object can construct a dynamic query parameter easily without any hql or sql, and meet database's 95% access requirement, so it is not necessary to write your DAO/SERVICE, the default DAO/SERVICE is enough in most cases. You can also write your DAO/SERVICE easily by extending default DAO/SERVICE.</P> <P>Bba96 current version integrated with webwork 2.x, that is a rapid and efficient web develope framework, only several lines code in a webwork action can implement a persistent object's CRUD operation(with dynamic parameter query).</P> <P>Bba96 plan to integrate with other mvc framework in future</P> <H3>Get Up And Running Quick</H3><PRE>Example: (1) enter the example folder. NOTE:all following operation is under the example folder (2) copy your JDBC driver (default mysql) to the lib directory -- webapps\ROOT\WEB-INF\lib (3) edit hibernate.properties for database info (default mysql) -- src\main\java\hibernate.properties (4) run "ant" (5) edit applicationContext.xml for database info (default mysql) -- webapps\ROOT\WEB-INF\applicationContext.xml (line 5 - 21) (6) start server and see this example </PRE> <P><BR> </P><img src ="http://m.tkk7.com/scorpio_leon/aggbug/13966.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/scorpio_leon/" target="_blank">鏉庢潕</a> 2005-09-25 01:45 <a href="http://m.tkk7.com/scorpio_leon/archive/2005/09/25/13966.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://286513.com" target="_blank">菠萝菠萝蜜在线免费视频</a>| <a href="http://haohaoshuo.com" target="_blank">久久香蕉国产线看免费</a>| <a href="http://snbbearing.com" target="_blank">国产亚洲精aa成人网站</a>| <a href="http://bjgelinhotel.com" target="_blank">日韩免费电影网站</a>| <a href="http://cc45987.com" target="_blank">99久久国产亚洲综合精品</a>| <a href="http://dxj588.com" target="_blank">亚洲一区二区高清</a>| <a href="http://carsmp.com" target="_blank">日本免费xxxx色视频</a>| <a href="http://www-64000.com" target="_blank">国产成人亚洲毛片</a>| <a href="http://51caox.com" target="_blank">亚洲综合无码一区二区</a>| <a href="http://www026qqcom.com" target="_blank">又色又污又黄无遮挡的免费视</a>| <a href="http://zjtuntex.com" target="_blank">av永久免费网站在线观看</a>| <a href="http://bisilover.com" target="_blank">亚洲五月综合缴情婷婷</a>| <a href="http://91vk.com" target="_blank">亚洲综合在线另类色区奇米</a>| <a href="http://rseav.com" target="_blank">美女视频黄的全免费视频</a>| <a href="http://55118885.com" target="_blank">国产精品免费视频观看拍拍</a>| <a href="http://144446.com" target="_blank">亚洲沟沟美女亚洲沟沟</a>| <a href="http://8k4c.com" target="_blank">久久久久亚洲精品无码网址</a>| <a href="http://8568008.com" target="_blank">国产v精品成人免费视频400条</a>| <a href="http://www827556.com" target="_blank">eeuss免费天堂影院</a>| <a href="http://bjowj.com" target="_blank">亚洲中文字幕无码亚洲成A人片</a>| <a href="http://ywjh666.com" target="_blank">精品亚洲一区二区</a>| <a href="http://whxhjc.com" target="_blank">免费人成在线观看网站视频 </a>| <a href="http://074g8.com" target="_blank">亚洲人成电影在线观看青青</a>| <a href="http://jhc2go.com" target="_blank">亚洲AV伊人久久青青草原</a>| <a href="http://dstbxg.com" target="_blank">av免费不卡国产观看</a>| <a href="http://fuhui123.com" target="_blank">福利免费在线观看</a>| <a href="http://c4665.com" target="_blank">MM1313亚洲精品无码久久</a>| <a href="http://pengkaimjg.com" target="_blank">亚洲国产精品网站久久</a>| <a href="http://cih60o.com" target="_blank">亚洲AV综合色区无码一区 </a>| <a href="http://121fj.com" target="_blank">综合亚洲伊人午夜网 </a>| <a href="http://wwwtoutoulu.com" target="_blank">国产免费直播在线观看视频</a>| <a href="http://jinlaifubuxiugang.com" target="_blank">久久永久免费人妻精品下载</a>| <a href="http://zhongxueping888.com" target="_blank">国产亚洲Av综合人人澡精品</a>| <a href="http://ldcatv.com" target="_blank">亚洲成a人片在线看</a>| <a href="http://58f8.com" target="_blank">久久久久无码精品亚洲日韩</a>| <a href="http://www454yu.com" target="_blank">亚洲一区二区三区在线播放</a>| <a href="http://sdsxyz.com" target="_blank">国产免费观看青青草原网站</a>| <a href="http://22222xxx.com" target="_blank">成年午夜视频免费观看视频</a>| <a href="http://831055.com" target="_blank">国产精品入口麻豆免费观看</a>| <a href="http://jlzjjy.com" target="_blank">久久久久久久99精品免费</a>| <a href="http://www-36664.com" target="_blank">国产无遮挡又黄又爽免费网站</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>