我已经在struts.xml中添加了<constant name="struts.i18n.encoding" value="GBK"/>
但是,我从JSP去Action传输中文的时候出现的乱码;后面发现由于没有配置method="post"!
用method="post"不会出现中文乱码;用method="get"的时候却出现了乱码!
总结:原来get和post传输的代码是不一样的.
我已经在struts.xml中添加了<constant name="struts.i18n.encoding" value="GBK"/>
但是,我从JSP去Action传输中文的时候出现的乱码;后面发现由于没有配置method="post"!
用method="post"不会出现中文乱码;用method="get"的时候却出现了乱码!
总结:原来get和post传输的代码是不一样的.
使用navigationItem時,首先要確保UINavigationController視圖已經加載到ViewController中。其代碼爲:
http://www.shsay.com http://blog.csdn.net/ladofwind/article/details/7535387
package my.data; import java.sql.*; public class Fy { Connection cn=nul