KK

Kim-'s-Blog.Object-Everything.I'm POJO.

.紀-錄.爲了忘卻的記憶..真的勇士,要敢于直面遇到的問題,敢于正視繁雜的原碼......在實踐中積累!

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  74 Posts :: 1 Stories :: 70 Comments :: 0 Trackbacks

#

如在<input type=text name=test>输入字符,自动转化为大写?
<input style="text-transform:capitalize">
<input style="text-transform:uppercase">
<input style="text-transform:lowercase">

text-transform : none | capitalize | uppercase | lowercase 
 
参数: 
 
none :  无转换发生
capitalize :  将每个单词的第一个字母转换成大写,其余无转换发生
uppercase :  转换成大写
lowercase :  转换成小写 
posted @ 2006-12-14 10:46 Kim' 阅读(292) | 评论 (0)编辑 收藏

如何把Hibernate查詢出的Object[]List放在ExtremeComponents顯示
Object[] 中含有兩個Class,


Query query=sess.createQuery("from Parts as a,Partsdetail as b where a.kind='G' and a.partno=b.partno ");

----------------------------------------------------------------

List v=query.list();
           List li=new ArrayList();
           for(int i=0;i<v.size();i++)
           {
            Map ma=new HashMap();
            Object[] o=(Object[])(v.get(i));
            {
             ma.put("partno", ((com.gecs.steel.Parts)o[0]).getPartno());
                ma.put("descr",((com.gecs.steel.Parts)o[0]).getDescr());
                ma.put("value",((com.gecs.steel.Parts)o[0]).getValue());
                ma.put("kind",((com.gecs.steel.Parts)o[0]).getKind());
            }
            {
             ma.put("vendorno", ((com.gecs.steel.Partsdetail)o[1]).getVendorno());
             ma.put("bodymark", ((com.gecs.steel.Partsdetail)o[1]).getBodymark());
            }
            li.add(ma);
          }
            sess.close();

----------------------------------------------------------------------

   <ec:row  onmouseover="this.style.cursor='hand'">
           <ec:column property="partno" title="PNL"></ec:column>
   </ec:row>

-----------------------------------------------------------------------

就OK了,不知還有更好的方法沒有?
posted @ 2006-12-04 11:56 Kim' 阅读(260) | 评论 (0)编辑 收藏

[DAD_htmldb]
connect_string = localhost:1521:orcl
password = apex
username = apex_public_user
default_page = apex
document_table = wwv_flow_file_objects$
document_path = docs
document_proc = wwv_flow_file_mgr.process_download
reuse = Yes
enablesso = No
stateful = STATELESS_RESET
nls_lang = American_America.AL32UTF8

---------------------------------------------------------------


password是:

@apexins passwordtablespace_apextablespace_filestablespace_tempimagesconnect

-----------------------------------------------------------------

http://hostname:port/pls/database_access_descriptor/
本例
database_access_descriptor為:htmldb/apex


posted @ 2006-12-02 10:33 Kim' 阅读(295) | 评论 (0)编辑 收藏

----------------------------------------------------------------------------------------------
行: 36

字符: 6

错误: 缺少对象

代码: 0

URL: http://localhost:8080/kimajax/
-----------------------------------------------------------------------------
function proce(){
    if(XMLHttpReq.readyState==4){
     if(XMLHttpReq.status==200){
     alert(XMLHttpReq.responsetext);
     var res=XMLHttpReq.responseXML.getElementsByTagName("content")[0].firstChild.data;
     window.alert(res);
     }else{
      window.alert("Error");
      }
      }
      }
--------------------------------------------------------------------------------
发现错误在:
response.setContentType("text/html;charset=UTF-8");
应为:
response.setContentType("text/xml;charset=UTF-8");
!!低级失误!!

posted @ 2006-12-01 20:03 Kim' 阅读(2619) | 评论 (6)编辑 收藏

仅列出标题
共8页: 上一页 1 2 3 4 5 6 7 8 
jj