2006年4月19日

          ?

          1 < composite - id?name = " comp_id " class = " com.xuanwu.wap.king.model.persistence.TblKingUserAgaPK " ?unsaved - value = " null " >
          2 ???????????? < key - many - to - one?name = " user " ?column = " N_USER_ID " ? class = " com.xuanwu.wap.king.model.persistence.TblKingUser " >
          3 ???????????? </ key - many - to - one >
          4 ???????????? < key - many - to - one?name = " aga " ?column = " N_AgA_ID " ? class = " com.xuanwu.wap.king.model.persistence.TblKingAga " >
          5 ???????????? </ key - many - to - one > ????????????????????
          6 ???????? </ composite - id >

          1 < many-to-one? name ="tblKingAga" ?class ="com.xuanwu.wap.king.model.persistence.TblKingAga" ?update ="false" ?insert ="false" >
          2 ???????????? < column? name ="N_AGA_ID" ? />
          3 </ many-to-one >

          1 < set? name ="tblKingUserAgas" ?lazy ="true" ?inverse ="true" ?cascade ="none" >
          2 ???????????? < key >
          3 ???????????????? < column? name ="N_AGA_ID" ? />
          4 ???????????? </ key >
          5 ???????????? < one-to-many? class ="com.xuanwu.wap.king.model.persistence.TblKingUserAga" ? />
          6 </ set >

          1 < id? name ="id" ?type ="java.lang.Long" ?column ="id" >
          2 ?????? < generator? class ="sequence" >
          3 ???????? < param? name ="sequence" > seq_user_id </ param >
          4 ?????? </ generator >
          5 </ id >

          ?1 < one-to-one? name ="userData" ?class ="com.xuanwu.wap.union.journey.data.model.TJourneyUserData" ?cascade ="all" ?property-ref ="user" />
          ?2 < many-to-one? name ="roleData" ?cascade ="none" ?class ="com.xuanwu.wap.union.journey.data.model.TJourneyRoleData" ?column ="roleid" />
          ?3 < set? name ="userNPC" ?cascade ="all" ?inverse ="true" ?lazy ="true" >
          ?4 ????????? < key? column ="userid" ></ key >
          ?5 ????????? < one-to-many? class ="com.xuanwu.wap.union.journey.data.model.TJourneyUserNpc" ? />
          ?6 </ set >
          ?7 < set? name ="userGoods" ?cascade ="all" ?inverse ="true" ?lazy ="true" >
          ?8 ????????? < key? column ="userid" ></ key >
          ?9 ????????? < one-to-many? class ="com.xuanwu.wap.union.journey.data.model.TJourneyUserGood" ? />
          10 </ set >

          posted @ 2006-04-19 17:07 愛你.福利 閱讀(347) | 評論 (0)編輯 收藏
           
          路徑與域合在一起就構成了cookie的作用范圍。
          如果不設置過期時間,則表示這個cookie的生命期為瀏覽器會話期間,只要關閉瀏覽器窗口,cookie就消失了。這種生命期為瀏覽器會話期的cookie被稱為會話cookie。會話cookie一般不存儲在硬盤上而是保存在內存里,當然這種行為并不是規范規定的。
          存儲在硬盤上的cookie可以在不同的瀏覽器進程間共享,比如兩個IE窗口。而對于保存在內存里的cookie,不同的瀏覽器有不同的處理方式。對于IE,在一個打開的窗口上按Ctrl-N(或者從文件菜單)打開的窗口可以與原窗口共享,而使用其他方式新開的IE進程則不能共享已經打開的窗口的內存cookie;對于Mozilla Firefox0.8,所有的進程和標簽頁都可以共享同樣的cookie。一般來說是用javascript的window.open打開的窗口會與原窗口共享內存cookie。瀏覽器對于會話cookie的這種只認cookie不認人的處理方式經常給采用session機制的web應用程序開發者造成很大的困擾。
          posted @ 2006-04-19 16:49 愛你.福利 閱讀(218) | 評論 (0)編輯 收藏
           

          Spring配置屬性名:contextConfigLocation相對Web應用根目錄

          log4jConfigLocation
          Convenience class that performs custom Log4J initialization for web environments, allowing for log file paths within the web application, with the option to perform automatic refresh checks (for runtime changes in logging configuration).

          WARNING: Assumes an expanded WAR file, both for loading the configuration file and for writing the log files. If you want to keep your WAR unexpanded or don't need application-specific log files within the WAR directory, don't use Log4J setup within the application (thus, don't use Log4jConfigListener or Log4jConfigServlet). Instead, use a global, VM-wide Log4J setup (for example, in JBoss) or JDK 1.4's java.util.logging (which is global too).

          Supports three init parameters at the servlet context level (that is, context-param entries in web.xml):

          "log4jConfigLocation":
          Location of the Log4J config file; either a "classpath:" location (e.g. "classpath:myLog4j.properties"), an absolute file URL (e.g. "file:C:/log4j.properties), or a plain path relative to the web application root directory (e.g. "/WEB-INF/log4j.properties"). If not specified, default Log4J initialization will apply ("log4j.properties" in the class path; see Log4J documentation for details).
          "log4jRefreshInterval":
          Interval between config file refresh checks, in milliseconds. If not specified, no refresh checks will happen, which avoids starting Log4J's watchdog thread.
          "log4jExposeWebAppRoot":
          Whether the web app root system property should be exposed, allowing for log file paths relative to the web application root directory. Default is "true"; specify "false" to suppress expose of the web app root system property. See below for details on how to use this system property in log file locations.
          Note: initLogging should be called before any other Spring activity (when using Log4J), for proper initialization before any Spring logging attempts.

          Log4J's watchdog thread will asynchronously check whether the timestamp of the config file has changed, using the given interval between checks. A refresh interval of 1000 milliseconds (one second), which allows to do on-demand log level changes with immediate effect, is not unfeasible.

          WARNING: Log4J's watchdog thread does not terminate until VM shutdown; in particular, it does not terminate on LogManager shutdown. Therefore, it is recommended to not use config file refreshing in a production J2EE environment; the watchdog thread would not stop on application shutdown there.

          By default, this configurer automatically sets the web app root system property, for "${key}" substitutions within log file locations in the Log4J config file, allowing for log file paths relative to the web application root directory. The default system property key is "webapp.root", to be used in a Log4J config file like as follows:

          log4j.appender.myfile.File=${webapp.root}/WEB-INF/demo.log

          Alternatively, specify a unique context-param "webAppRootKey" per web application. For example, with "webAppRootKey = "demo.root":

          log4j.appender.myfile.File=${demo.root}/WEB-INF/demo.log

          WARNING: Some containers (like Tomcat) do not keep system properties separate per web app. You have to use unique "webAppRootKey" context-params per web app then, to avoid clashes. Other containers like Resin do isolate each web app's system properties: Here you can use the default key (i.e. no "webAppRootKey" context-param at all) without worrying.

          posted @ 2006-04-19 16:46 愛你.福利 閱讀(853) | 評論 (0)編輯 收藏
           

          WML規范:
          img標簽必須有src和alt兩個屬性
          ?HTML特殊字符必須過濾
          ?所有的內容必須包括在<p></p>標簽中
          ?<p>不能嵌套
          ?input標簽不能嵌套在<small>中
          中文的解決:
          中國移動加入以下幾句后,頁面中可以直接寫中文,不用轉換,提交的中文直接request.getParameter("")獲得,不用轉換
          <%@ page contentType="text/vnd.wap.wml;charset=gbk"%>
          <%response.setContentType("text/vnd.wap.wml;charset=UTF-8");%>
          <%request.setCharacterEncoding("UTF-8");%>
          中國聯通加入以下幾句后,頁面中可以直接寫中文,不用轉換,提交的中文直接request.getParameter("")獲得,不用轉換
          <%@ page contentType="text/vnd.wap.wml;charset=gbk"%>
          <%request.setCharacterEncoding("UTF-8");%>
          操作系統win2000,Web Server resin(或tomcat)
          因為編碼為UTF-8,在Linux應該也沒問題
          聯通x-wap-client-id,有就是2.0的,沒有就是1.2
          聯通下載業務比較麻煩,需要申請DownloadFun
          uplink:download?source=http://wap.165e.com/df/http://www.139130.net/mkj/05000028.mid&amp;size=11311&amp;object=phone:ringtone&amp;status=http://wap.139130.net/mkj/result.jsp這個下載鏈接的格式
          http://wap.165e.com/df/為代理地址,后面的是文件地址
          object根據不同的文件格式不一樣
          phone:ringtone表示鈴聲
          phone:wallpaper表示圖片

          聯通的偽手機號:req.getHeader("deviceid")//211.96.20.4*
          聯通的手機號:req.getHeader("x-up-calling-line-id")
          移動的偽手機號:req.getParameter("MISC_MID")//211.136.253.102

          posted @ 2006-04-19 16:43 愛你.福利 閱讀(441) | 評論 (0)編輯 收藏
           
          usr_tab_columns保存了所有用戶的表的列的信息,包括數據類型,列名,表名等
          屬于SYS用戶,其它用戶默認只有Select的權限,表結構看下圖
          r_user_tab_columns.BMP
          圖不清晰,請看相冊中圖片
          例:查找所有的包含CreateDate列名的表名
          select table_name from user_tab_columns where column_name='CreateDate'
          posted @ 2006-04-19 10:26 愛你.福利 閱讀(501) | 評論 (0)編輯 收藏
           
          主站蜘蛛池模板: 凤庆县| 武强县| 元江| 贺兰县| 页游| 湖口县| 梁河县| 乃东县| 顺平县| 武川县| 辽源市| 灌云县| 驻马店市| 钟祥市| 东源县| 三门县| 北宁市| 庄河市| 巨鹿县| 平陆县| 犍为县| 登封市| 新沂市| 银川市| 台山市| 五大连池市| 济阳县| 西乡县| 建昌县| 中方县| 诸城市| 左权县| 寿宁县| 梧州市| 霸州市| 交城县| 常熟市| 苏州市| 霞浦县| 丰县| 乌审旗|