摘要:
try{ String encoding = "Unicode"; String txtFilePath = "C:\\Documents and Settings\\abin\\桌面\\txt\\321.txt";// String tmpLineVal; InputStreamReader read = new InputStreamReader(new FileInputStream(txtFilePath), encoding); BufferedReader bufread = new BufferedReader(read); while(( 阅读全文
摘要:
后台: ActionContext context = ActionContext.getContext(); HttpServletResponse response = (HttpServletResponse) context.get(ServletActionContext.HTTP_RESPONSE); response.setCharacterEncoding("UTF-8"); HttpServletRequest request = (HttpServletRequest) context.get(ServletActionContext.HTTP_REQU 阅读全文
摘要:
转自:http://liss.javaeye.com/blog/575771Ext.form.ComboBox提交始终获得displayField的值,以前没遇到过,直到我做了一个ComboBox组合Tree时,才出现这个问题,不管我怎么设置,以及修改代码,就是一直提交的是显示的内容,而不是隐藏的那个值.后来,在使用普通的ComboBox时,也出现这个问题,于是认真了一把,终于找到了问题的解决方法,只要在ComboBox对象里设置hiddenName属性(我把hiddenName值设成name一样的值)就可以了,嘿嘿,真是很变态.示例代码:Js代码varcombo=newExt.form.Co 阅读全文