隨筆-40  評論-66  文章-0  trackbacks-0
           

          Cannot retrieve mapping for action

          異常
          javax.servlet.jsp.JspException: Cannot retrieve mapping for action /Login (/Login是你的action名字)




          可能原因
          action沒有再struts-config.xml 中定義,或沒有找到匹配的action,例如在JSP文件中使用 <html:form action="Login.do".將表單提交給Login.do處理,如果出現(xiàn)上述異常,請查看struts-config.xml中的定義部分,有時可能是打錯了字符或者是某些不符合規(guī)則,可以使用struts console工具來檢查。





          Cannot retrieve definition for form bean null

          異常
          org.apache.jasper.JasperException: Cannot retrieve definition for form bean null

          可能原因

          這個異常是因為Struts根據(jù)struts-config.xml中的mapping沒有找到action期望的form bean。大部分的情況可能是因為在form-bean中設(shè)置的name屬性和action中設(shè)置的name屬性不匹配所致。換句話說,action和form都應(yīng)該各自有一個name屬性,并且要精確匹配,包括大小寫。這個錯誤當沒有name屬性和action關(guān)聯(lián)時也會發(fā)生,如果沒有在action中指定name屬性,那么就沒有name屬性和action相關(guān)聯(lián)。當然當action制作某些控制時,譬如根據(jù)參數(shù)值跳轉(zhuǎn)到相應(yīng)的jsp頁面,而不是處理表單數(shù)據(jù),這是就不用name屬性,這也是action的使用方法之一。





          No action instance for path /xxxx could be created

          異常
          No action instance for path /xxxx could be created

          可能原因
          特別提示:因為有很多中情況會導(dǎo)致這個錯誤的發(fā)生,所以推薦大家調(diào)高你的web服務(wù)器的日志/調(diào)試級別,這樣可以從更多的信息中看到潛在的、在試圖創(chuàng)建action類時發(fā)生的錯誤,這個action類你已經(jīng)在struts-config.xml中設(shè)置了關(guān)聯(lián)(即添加了<action>標簽)。

          在struts-config.xml中通過action標簽的class屬性指定的action類不能被找到有很多種原因,例如:

          定位編譯后的.class文件失敗。Failure to place compiled .class file for the action in the classpath (在web開發(fā)中,class的的位置在r WEB-INF/classes,所以你的action class必須要在這個目錄下。例如你的action類位于WEB-INF/classes/action/Login.class,那么在struts-config.xml中設(shè)置action的屬性type時就是action.Login).
          拼寫錯誤,這個也時有發(fā)生,并且不易找到,特別注意第一個字母的大小寫和包的名稱。

          在struts-config.xml中指定的action類沒有繼承自Stuts的Action類,或者你自定義的Action類沒有繼承自Struts提供的Action類。

          你的action類必須繼承自Struts提供的Action類。

          你的classpath的問題。例如web server沒有發(fā)現(xiàn)你的資源文件,資源文件必須在WEB-INF/classes/目錄下。

          Problem in struts-config.xml file with action mapping.

          Problem with data-sources.xml file.

          相關(guān)鏈接
          http://www.mail-archive.com/struts-user ... org/msg65874.html
          Action Mapping mistake in struts-config.xml:
          http://www.manning.com/ao/readforum.ht ... mp;readthread=177
          data-sources.xml file?:
          http://www.caucho.com/quercus/faq/section.xtp?section_id=30





          No getter method for property XXXX of bean org.apache.struts.taglib.html.BEAN

          異常
          javax.servlet.jsp.JspException: No getter method for property username of bean org.apache.struts.taglib.html.BEAN

          可能原因
          沒有位form bean中的某個變量定義getter 方法

          這個錯誤主要發(fā)生在表單提交的FormBean中,用struts標記<html:text property=”username”>時,在FormBean中必須有一個getUsername()方法。注意字母“U”。

          Related Links
          Case can trip up the matching between get method's name and name specified in Struts tag
          http://saloon.javaranch.com/cgi-bin/ubb/ultimate ... c&f=58&t=000163





          java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm

          錯誤
          java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm

          可能原因
          這個錯誤主要發(fā)生在在classpath中找不到相應(yīng)的Java .class文件。如果這個錯誤發(fā)生在web應(yīng)用程序的運行時,主要是因為指定的class文件不在web server的classpath中(/WEB-INF/classes 和 /WEB-INF/lib)。

          在上面的錯誤中,原因是找不到ActionForm類。

          This error is sometimes seen when one or more ActionForm.class instances are actually in the classpath. This most often occurs when ActionForm.class is made available correctly by placing struts.jar in the /WEB-INF/lib directory. When this library has been correctly placed and it is verified that ActionForm.class actually is present in the struts.jar file, the problem is either that more than one copy of ActionForm.class is in the classpath or (more likely) that duplicate versions of class files other than ActionForm are in the same classpath, causing confusion. This is especially true if a class that extends ActionForm is made available twice, such as in an .ear file that encompasses a .war file as well as in the .war file's own classpath (/WEB-INF/classes). This problem can be resolved by guaranteeing that there are no redundant classes, especially those related to Struts (directly from Struts or extensions of Struts), in the web application's view.

          相關(guān)連接
          EJB and Web Shared Links:
          http://forum.java.sun.com/thread.jsp?forum=26&am ... ;tstart=0&trange=15
          Keep Action and ActionForm (and their children) as non-overlapping unit(s) of an application
          http://www.mail-archive.com/struts-u ... ache.org/msg47466.html
          http://www.mail-archive.com/struts-user ... org/msg47467.html





          Exception creating bean of class org.apache.struts.action.ActionForm: {1}

          異常
          javax.servlet.jsp.JspException: Exception creating bean of class org.apache.struts.action.ActionForm: {1}

          可能原因
          Instantiating Struts-provided ActionForm class directly instead of instantiating a class derived off ActionForm. This might occur implicitly if you specify that a form-bean is this Struts ActionForm class rather than specifying a child of this class for the form-bean.

          Not associating an ActionForm-descended class with an action can also lead to this error.

          Related Links






          Cannot find ActionMappings or ActionFormBeans collection

          Exception
          javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection

          可能原因
          不是標識Struts actionServlet的<servlet>標記就是映射.do擴展名的<sevlet-mapping>標記或者兩者都沒有在web.xml中聲明。

          在struts-config.xml中的打字或者拼寫錯誤也可導(dǎo)致這個異常的發(fā)生。例如缺少一個標記的關(guān)閉符號/>。最好使用struts console工具檢查一下。

          另外,load-on-startup必須在web.xml中聲明,這要么是一個空標記,要么指定一個數(shù)值,這個數(shù)值用來表servlet運行的優(yōu)先級,數(shù)值越大優(yōu)先級越低。

          還有一個和使用load-on-startup有關(guān)的是使用Struts預(yù)編譯JSP文件時也可能導(dǎo)致這個異常。

          相關(guān)鏈接
          Explicitly Define <load-on-startup>
          http://saloon.javaranch.com/cgi-bin/ubb/ultim ... topic&f=50&t=001055
          http://threebit.net/tutorials/ejb/general/





          NullPointerException at ... RequestUtils.forwardURL

          異常
          java.lang.NullPointerException at org.apache.struts.util.RequestUtils.forwardURL(RequestUtils.java:1223)

          可能原因
          在struts-config.xml中的forward元素缺少path屬性。例如應(yīng)該是如下形式:
          <forward name="userhome" path="/user/userhome.jsp"/>





          Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

          Exception
          javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope




          Probable Causes
          試圖在Struts的form標記外使用form的子元素。這常常發(fā)生在你在</html:form>后面使用Struts的html標記。

          另外要注意可能你不經(jīng)意使用的無主體的標記,如<html:form … />,這樣web 服務(wù)器解析時就當作一個無主體的標記,隨后使用的所有<html>標記都被認為是在這個標記之外的,如又使用了<html:text property=”id”>

          還有就是在使用taglib引入HTML標記庫時,你使用的prefix的值不是html。

          相關(guān)連接
          Using form subelements outside of a form tag
          http://forum.java.sun.com/thread.jsp?thread= ... &message=1384153





          Missing message for key xx.xx.xx

          Exception
          javax.servlet.jsp.JspException: Missing message for key xx.xx.xx

          Probable Causes
          這個key的值對沒有在資源文件ApplicationResources.properties中定義。如果你使用eclipse時經(jīng)常碰到這樣的情況,當項目重新編譯時,eclipse會自動將classes目錄下的資源文件刪除。

          資源文件ApplicationResources.properties 不在classpath中 應(yīng)將資源文件放到 WEB-INF/classes 目錄下,當然要在struts-config.xml中定義)





          Cannot find message resources under key org.apache.struts.action.MESSAGE

          異常
          Cannot find message resources under key org.apache.struts.action.MESSAGE

          可能原因
          很顯然,這個錯誤是發(fā)生在使用資源文件時,而Struts沒有找到資源文件。

          Implicitly trying to use message resources that are not available (such as using empty html:options tag instead of specifying the options in its body -- this assumes options are specified in ApplicationResources.properties file)

          XML parser issues -- too many, too few, incorrect/incompatible versions

          Related Links
          Provide Struts with Resource Bundle
          http://threebit.net/tutorials/ejb/general/
          XML Parser Issues
          http://www.mail-archive.com/struts-user ... org/msg15779.html





          No input attribute for mapping path /loginAction

          錯誤
          No input attribute for mapping path /xxxxAction

          可能原因e
          No input attribute in action mapping in struts-config.xml file for the action with the name specified in the error message. An input attribute is not required if form validation is not performed (either because the validate attribute is set to false or because the validation method in the relevant form class is not implemented. The input attribute specifies the page leading to this action because that page is used to display error messages from the form validation.

          Related Links






          Strange Output Characters

          錯誤
          Strange and seemingly random characters in HTML and on screen, but not in original JSP or servlet.

          可能原因
          混和使用Struts的html:form標記和標準的HTML標記不正確。

          使用的編碼樣式在本頁中不支持。





          "Document contained no data" or no data rendered on page

          錯誤
          "Document contained no data" in Netscape

          No data rendered (completely empty) page in Microsoft Internet Explorer

          可能原因
          使用一個Action的派生類而沒有實現(xiàn)perform()方法或execute()方法。在Struts1.0中實現(xiàn)的是perform()方法,在Struts1.1中實現(xiàn)的是execute()方法,但Struts1.1向后兼容perform()方法。

          但你使用Struts1.1創(chuàng)建一個Action的派生類,并且實現(xiàn)了execute()方法,而你在Struts1.0中運行的話,就會得到"Document contained no data" error message in Netscape or a completely empty (no HTML whatsoever) page rendered in Microsoft Internet Explorer.”的錯誤信息。


          posted @ 2006-12-06 16:44 Super·shen BLOG 閱讀(492) | 評論 (0)編輯 收藏
          Action類

          用來訪問業(yè)務(wù)邏輯類。當 ActionServlet 從容器接收到一個請求,它使用URI (或者路徑
          “path”) 來決定那個Action 將用來處理請求。一個 Action 可以校驗輸入,并且訪問業(yè)務(wù)
          層以從數(shù)據(jù)庫或其他數(shù)據(jù)服務(wù)中檢索信息。


          ActionForm類

          為校驗輸入或者使用輸入來更新數(shù)據(jù)庫, Action 需要知道什么值被提交上來。它并不是強
          制每個Action 都要從請求中抓取這些值,而是由 ActionServlet 將輸入綁定到JavaBean中。
          輸入 bean 就是Struts ActionForm 類的子類。ActionServlet 通過查找請求的路徑可以決定使
          用哪個ActionForm , Action 也是通過同樣的方法選取的。ActionForm 擴展了
          org.apache.struts.action.ActionForm 類

          每個請求都必須以HTTP 響應(yīng)進行應(yīng)答。 通常,Struts Action 并不自行渲染響應(yīng)信息,
          而是將請求轉(zhuǎn)發(fā)到其他資源,比如JSP 頁面。Struts 提供一個ActionForward 類,用來將
          一個頁面的路徑保存為邏輯名稱。當完成業(yè)務(wù)邏輯后,Action 選擇并向Servlet 返回一個
          ActionForward。Servlet 然后使用保存在ActionForward 對象中的路徑來調(diào)用頁面完成響
          應(yīng)。

          Struts 將這些細節(jié)都綁定在一個ActionMapping 對象中。每個ActionMapping 相對于一個
          特定的路徑。當某個路徑被請求時,Servlet 就查詢ActionMapping 對象。ActionMapping
          對象告訴servlet,哪些個Action,ActionForm,和 ActionForward 將要被本次請求使用。
          所有這些細節(jié),關(guān)于Action, ActionForm, ActionForward, ActionMapping,以及其
          它一些東西,都在struts-config.xml 文件中定義。 ActionServlet 在啟動時讀取這個配置文
          件,并創(chuàng)建一個配置對象數(shù)據(jù)庫



          舉個例子來說,
          頁面上如果有以下語句:
          <html:form?action="/hello.do">
          當submit此form時,控制器從配置文件中找<action-mappings>下path="/hello"?的<action>元素
          然后根據(jù)此action元素的type屬性找要執(zhí)行的action類文件
          比如

          <action-mappings>
          ????<action?path="hello"
          ????????????type="cn.com.mylu.Hello"
          ????????????name="Hellofrom"
          ????????????……
          ????</action>

          其中 cn.com.mylu.Hellofrom?為ActionForm類javabean
          ???????????cn.com.mylu.Hello 為Action類

          ??? <form-bean name="Hellofrom" type="cn.com.mylu.Hellofrom">
          ??? </form-bean>


          頁面hello.do----->?action元素的path屬性?------>?action元素的type屬性----->Hello.java---->Hello.java中的execute方法
          posted @ 2006-12-06 16:25 Super·shen BLOG 閱讀(354) | 評論 (0)編輯 收藏

          在講外連接之前,先舉例介紹內(nèi)連接,也就是一般的相等連接。
          select * from a, b where a.id = b.id;
          對于外連接,Oracle中可以使用“(+)”來表示,9i可以使用LEFT/RIGHT/FULL OUTER JOIN,下面將配合實例一一介紹。
          1. LEFT OUTER JOIN:左外關(guān)聯(lián)

          SELECT e.last_name, e.department_id, d.department_name?
          FROM employees e?
          LEFT OUTER JOIN departments d?
          ON (e.department_id = d.department_id);
          ?

          等價于
          SELECT e.last_name, e.department_id, d.department_name?
          FROM employees e, departments d?
          WHERE e.department_id=d.department_id(+);
          ?

          結(jié)果為:所有員工及對應(yīng)部門的記錄,包括沒有對應(yīng)部門編號department_id的員工記錄。
          2. RIGHT OUTER JOIN:右外關(guān)聯(lián)
          SELECT e.last_name, e.department_id, d.department_name?
          FROM employees e?
          RIGHT OUTER JOIN departments d?
          ON (e.department_id = d.department_id);
          ?

          等價于
          SELECT e.last_name, e.department_id, d.department_name?
          FROM employees e, departments d?
          WHERE e.department_id(+)=d.department_id;
          ?

          結(jié)果為:所有員工及對應(yīng)部門的記錄,包括沒有任何員工的部門記錄。
          3. FULL OUTER JOIN:全外關(guān)聯(lián)
          SELECT e.last_name, e.department_id, d.department_name?
          FROM employees e?
          FULL OUTER JOIN departments d?
          ON (e.department_id = d.department_id);
          ?

          結(jié)果為:所有員工及對應(yīng)部門的記錄,包括沒有對應(yīng)部門編號department_id的員工記錄和沒有任何員工的部門記錄。

          posted @ 2006-11-29 14:32 Super·shen BLOG 閱讀(417) | 評論 (0)編輯 收藏

          下棋沒啥長進,今天用了半個小時看看兵書,總結(jié)一下。

          開局基本原理:
          [盡快集結(jié)子力]
          [爭奪河界]

          1。 盡快集結(jié)子力

          ·????????如無必要,不要重復(fù)走同一子

          ·? ?? ???先出炮、馬 ,然后車、兵?? ?[車要通 馬要靈 炮要能呼應(yīng)]

          ·? ?? ???不可用一兩個棋盲目進攻

          ·? ?? ???子力要互相呼應(yīng),互相配合,不可互相干擾和阻塞

          ·? ?? ???若吃兵使用對方能力快速出子或發(fā)動攻勢,便不要吃

          ·? ?? ???若吃兵使用對方能力快速出子或發(fā)動攻勢,便不要吃


          2.?????? 爭奪河界 :

          除車以外,其他棋子在河界附近都可發(fā)揮最大威力及控制力,在中心的棋子要調(diào)動到兩翼也較靈活、快速,所以河界附近為兵家必爭之地。若河界附近被對方占領(lǐng),便得設(shè)法攻下它。反之,自己占據(jù)時,須要堅守并利用它向?qū)Ψ降木艑m進攻。

          中局原理

          3.? ?? ? 善用「車」:

          4.????????在防守中進攻,兼顧協(xié)調(diào)

          5.?????? 保護「士兵」:



          關(guān)鍵還是實戰(zhàn)時眼光銳利,先人一步。

          posted @ 2006-11-21 17:35 Super·shen BLOG 閱讀(5842) | 評論 (2)編輯 收藏
          String strsql = "select temp.*,rownum? from (select * from tb_awardinfo order by award_id desc )temp where rownum <=5";
          //自己亂寫的,不知道效率怎么樣,那位達人幫貼過代碼來參考參考
          posted @ 2006-11-21 16:17 Super·shen BLOG 閱讀(853) | 評論 (0)編輯 收藏

          oracle 分頁

          1. 最好還是利用分析函數(shù)
          row_number() over ( partition by col1 order by col2 )

          比如想取出100-150條記錄,按照tname排序

          select tname,tabtype from (
          ?? select tname,tabtype,row_number() over ( order by tname ) rn from tab
          )
          where rn between 100 and 150;

          2. 直接使用rownum 虛列
          select tname,tabtype from (
          ?? select tname,tabtype,rownum rn from tab where rownum <= 150
          )
          where rn >= 100;
          使用序列不能基于整個記錄集合進行排序,如果指定了order by子句,排序的的是選出來的記錄集的排序.

          ------------------------------------------------------------------------
          經(jīng)過測試,在100萬條數(shù)據(jù)的表中,檢索數(shù)據(jù)的時候,方法2的速度要比方法1要快的.


          排序分頁

          說明:Oracle下用rownum進行分頁時 很容易出現(xiàn)排序的錯亂。


          但多套一層select 就能很好的解決該問題,特此記錄,語句如下:

          select t2.* from (select t1.*, rownum rn from (select * from tb_courseinfo order by rownum? desc )t1 where rownum <=?150 )t2 where rn >100


          不懂具體效率怎么樣,和上邊一樣應(yīng)該還可以。




          實際例子代碼如下

          int curpage=1;//當前頁
          int page_record=20;//每頁顯示的記錄數(shù)
          int introwcount=0; // 記錄數(shù)
          if(request.getParameter("page")==null||Integer.parseInt(request.getParameter("page"))<=0)
          {
          curpage = 0;
          }
          else
          {
          curpage=Integer.parseInt(request.getParameter("page"))-1;//獲取傳遞的值,需要顯示的頁
          }

          String sql = "select t2.* from (select t1.*, rownum rn from (select * from tb_courseinfo order by rownum? desc )t1 where rownum <= "+(curpage+1)*page_record+" )t2 where rn > "+curpage*page_record;



          posted @ 2006-11-21 16:11 Super·shen BLOG 閱讀(4140) | 評論 (3)編輯 收藏

          ?

          sys和system用戶的區(qū)別
          【system】用戶只能用normal身份登陸em。
          【sys】用戶具有“SYSDBA”或者“SYSOPER”權(quán)限,登陸em也只能用這兩個身份,不能用normal。
          “SYSOPER”權(quán)限,即數(shù)據(jù)庫操作員權(quán)限,權(quán)限包括:
          ? 打開數(shù)據(jù)庫服務(wù)器?? 關(guān)閉數(shù)據(jù)庫服務(wù)器
          ? 備份數(shù)據(jù)庫?????? 恢復(fù)數(shù)據(jù)庫
          ? 日志歸檔???????? 會話限制
          “SYSDBA”權(quán)限,即數(shù)據(jù)庫管理員權(quán)限,權(quán)限包括:
          ? 打開數(shù)據(jù)庫服務(wù)器?? 關(guān)閉數(shù)據(jù)庫服務(wù)器
          ? 備份數(shù)據(jù)庫?????? 恢復(fù)數(shù)據(jù)庫
          ? 日志歸檔?????? 會話限制
          ? 管理功能?????? 創(chuàng)建數(shù)據(jù)庫


          normal 、sysdba、 sysoper有什么區(qū)別
          normal 是普通用戶
          另外兩個,你考察他們所具有的權(quán)限就知道了
          sysdba擁有最高的系統(tǒng)權(quán)限
          sysoper主要用來啟動、關(guān)閉數(shù)據(jù)庫,sysoper 登陸后用戶是 public
          sysdba登陸后是 sys

          SQL> conn / as sysdba
          已連接。
          SQL> grant sysoper to test;

          授權(quán)成功。

          SQL> conn test/test as sysoper;
          已連接。
          SQL> show user
          USER 為"PUBLIC"
          SQL> conn test/test as sysdba
          已連接。
          SQL> show user
          USER 為"SYS"
          SQL>

          ?

          ?

          dba和sysdba的區(qū)別
          dba、sysdba這兩個系統(tǒng)角色有什么區(qū)別呢
          在說明這一點之前我需要說一下oracle服務(wù)的創(chuàng)建過程
          ·創(chuàng)建實例
          ·啟動實例
          ·創(chuàng)建數(shù)據(jù)庫(system表空間是必須的)
          啟動過程
          ·實例啟動
          ·裝載數(shù)據(jù)庫
          ·打開數(shù)據(jù)庫

          sysdba,是管理oracle實例的,它的存在不依賴于整個數(shù)據(jù)庫完全啟動,
          只要實例啟動了,他就已經(jīng)存在,以sysdba身份登陸,裝載數(shù)據(jù)庫、打開數(shù)據(jù)庫
          只有數(shù)據(jù)庫打開了,或者說整個數(shù)據(jù)庫完全啟動后,dba角色才有了存在的基礎(chǔ)!

          posted @ 2006-11-20 15:37 Super·shen BLOG 閱讀(7660) | 評論 (4)編輯 收藏

          一直都是用sql server作為開發(fā)數(shù)據(jù)庫,最近因為開發(fā)新的項目使用oracle數(shù)據(jù)庫,我才開始學(xué)習(xí)oracle.
          學(xué)習(xí)了一段時間,發(fā)現(xiàn)SQL Server和Oracle還是有這很大的差別。首先,我在SQL Server中用得很順手的自增長字段就在ORACLE中找不到了,朋友說可以用序列可以實現(xiàn),于是查閱資料,整理出如下示例:


          方法一

          1.建立測試數(shù)據(jù)表
          CREATE TABLE TEST
          (
          ?ID?NUMBER,
          ?NAME?VARCHAR2(20),
          ?PRIMARY KEY(ID)
          );

          2.創(chuàng)建序列
          CREATE SEQUENCE SEQ_TEST;

          3.創(chuàng)建觸發(fā)器
          CREATE OR REPLACE TRIGGER AUTOINCREMENT
          BEFORE INSERT ON TEST
          FOR EACH ROW
          WHEN (NEW.ID IS NULL)
          BEGIN
          SELECT SEQ_TEST.NEXTVAL INTO :NEW.ID FROM DUAL;
          END;
          /

          4.插入數(shù)據(jù)
          INSERT INTO TEST(NAME) VALUES('NAME1');

          5.查看插入結(jié)果
          SELECT * FROM TEST;



          方法二


          SQL ? Server,Sybase: ?
          ? 有個identity屬性可以讓系統(tǒng)自動增1 ?
          ? create ? table ? a ?
          ? ( ?
          ? a1 ? int ? identity(1,1), ?
          ? a2 ? varchar(6) ?
          ? )???
          ? 然后在insert時: ?
          ? insert ? into ? a ? values('hello!'); --不用管a1,系統(tǒng)會自動增1 ?
          ? ?
          ? Oracle: ?
          ? 使用SEQUENCE(序列)可以達到要求 ?
          ? create ? table ? a ?
          ? ( ?
          ? a1 ? int ? , ?
          ? a2 ? varchar2(6) ?
          ? ); ?
          ? ?
          ? create ? SEQUENCE ? seq_a ? ? INCREMENT ? BY ? 1;???
          ????
          ? 然后在insert時: ?
          ? insert ? into ? a ? values(seq_a.nextval,'hello!'); --seq_a.nextval是該序列的下個值

          posted @ 2006-11-20 00:39 Super·shen BLOG 閱讀(671) | 評論 (0)編輯 收藏

          每天都在趕項目,只能用自己認為比較快的方式制作了!


          寫好幾個類,寫好幾個頁面,?每天在復(fù)制粘貼代碼!!暈死

          其實我也想弄高質(zhì)量的東西,沒有時間了


          我想干類似我這種活的人不少
          嚴重懷疑中國軟件的質(zhì)量



          周末得加一天班了

          弄個效果圖上

          posted @ 2006-11-16 23:29 Super·shen BLOG 閱讀(435) | 評論 (0)編輯 收藏
          來公司上班已經(jīng)兩個月了,雖然工作相對來說不累, 但工作之余,內(nèi)心總是感覺前面的路不是很清晰。

          過去一兩年我一直在做WEB項目的開發(fā), 包括網(wǎng)站,自助建站系統(tǒng),OA辦公系統(tǒng)等。因為一直在小公司干,專職的只有兩個程序員,所以基本每種技術(shù)都會一些(ASP,PHP,JSP,ASP.NET,MSSQL,MYSQL,ORACLE都有用過開發(fā)有案例),但明顯深度不夠,用得最好的算是VS2003開發(fā)ASP.NET吧。



          最近這個月,我們老總接了一個朋友的單子,是一所專科學(xué)院的OA系統(tǒng), 公司有一個JAVA程序工程師(聽說這個人很牛,在IBM中國做過1億多的項目)做了一個方案,用JAVA的什么什么技術(shù)實現(xiàn)( Struts+spring+hibernate+EJB),并報了個概價約20萬,提交到學(xué)校,學(xué)校沒有回音。

          老總說這個月初,學(xué)校說要做了,并簽了合同 大概15萬(具體我沒得看)。

          剛好上個月月尾,公司的唯一牛人 JAVA程序工程師辭職了。

          老總就把這個項目扔給我做,我表示我沒這個能力,我對JAVA 的Struts+spring+hibernate+EJB 多層架構(gòu)根本不熟悉,他以為我在推托責任,老總叫我到辦公室說了一大堆理由,最終我沒說過他!我還是得做!(補充:老總對計算機技術(shù)是個文盲,是個很厚道的很有錢人。 有一次很搞笑,他叫我?guī)退麚Q個顯示器用,正在換的時候,他給我說:“你要記得把我原來電腦桌面上的文件保留下來啊” 我汗,我差點倒地)。

          現(xiàn)在我硬著頭皮在搞這個項目,由于對JAVA 的Struts+spring+hibernate+EJB 多層架構(gòu)不懂,而項目又一定要用JAVA 做,時間又緊,40天完成,只有我一個人做,我只能直接用JSP + JAVABEAN+ORACLE做了!

          現(xiàn)在已經(jīng)過去10天了,估計才完成1/3。
          估計以后得加班了,應(yīng)該能按時交付。


          但是,總感覺我這條路走得不對,做來做去都是一些沒什么價值的東西,沒有深度的東西, 現(xiàn)在什么年代了,還用在JSP+JAVA BEAN開發(fā),沒長進啊。
          ?

          感覺我大學(xué)畢業(yè)時基礎(chǔ)也不差,也通過了程序設(shè)計師考試,畢業(yè)時候還混得個好工作。 但是這兩年混錯了方向,這里搞搞 那里搞搞,但都不深入學(xué)習(xí),兩年就這樣過去了!現(xiàn)在再來深入學(xué)習(xí)JAVA 還行嗎。。。。
          posted @ 2006-11-15 16:41 Super·shen BLOG 閱讀(581) | 評論 (2)編輯 收藏
          僅列出標題
          共4頁: 上一頁 1 2 3 4 
          主站蜘蛛池模板: 丹江口市| 通化县| 睢宁县| 伊宁市| 千阳县| 德江县| 永胜县| 晋州市| 柳江县| 高雄市| 浦江县| 虞城县| 崇阳县| 施秉县| 天气| 吴江市| 庄河市| 镇江市| 高淳县| 枝江市| 安阳县| 桦南县| 乌拉特前旗| 武陟县| 辉南县| 额尔古纳市| 房产| 团风县| 富裕县| SHOW| 沙洋县| 靖州| 鄄城县| 霸州市| 娄底市| 青海省| 徐水县| 青岛市| 平南县| 剑河县| 宁陕县|