2010年4月25日

Ajax(jquery、Dom提交+struts1) 乱码解决

摘要: 一,jquery框架 1.对于post提交方式 在servlet中对request进行编码:request.setCharacterEncoding("UTF-8"); 2 对于get提交 String username = request.getParameter("username"); username = newString(username.getBytes("ISO-8859-1")... 阅读全文

posted @ 2010-04-25 12:10 sdh 阅读(653) 评论(0) 推荐(0)

struts.xml 配置

摘要: 1.struts.xml<struts><constant name="struts.i18n.encoding" value="GBK" ></constant><package name="struts2" extends="struts-default"> <action name="loginaction" class="org.str... 阅读全文

posted @ 2010-04-25 12:07 sdh 阅读(197) 评论(0) 推荐(0)

jquery+webservice

摘要: 1、编写4种WebService方法[WebService(Namespace="http://tempuri.org/")][WebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1)][ScriptService]//令WebService成功传入Json参数,并以Json形式返回结果[GenerateScriptType(typeof(... 阅读全文

posted @ 2010-04-25 12:04 sdh 阅读(418) 评论(0) 推荐(0)

导航