aspx和jsp的互相传值!!!!
我的目的是:从一个aspx中向一个jsp发送参数,然后接受该jsp的反馈信息。
string URL="http://192.168.1.10/web/send.jsp?msg=" + "成功";
WebRequest wr = WebRequest.Create(URL);
WebClient wc = new WebClient();
Stream str = wc.OpenRead(URL);
StreamReader sr = new StreamReader(str);
string line, content = "";
while( ( line = sr.ReadLine() ) != null )
content += line;
wc.Dispose();
sr.Close();
jsp中使用request.getParameter来获取参数信息,参数msg的内容为汉字时得到的是乱码,比如???,英文时正常。
请问如何解决这个问题呢?