如在<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 : 转换成小写
如何把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了,不知還有更好的方法沒有?
[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
----------------------------------------------------------------------------------------------
行: 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");
!!低级失误!!