servlet调用jsp 用HttpConnection or URLConnection 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 try { URL news = new URL("http://myserver/myservlet"); BufferedReader in = new BufferedReader(new InputStreamReader(news.openStream())); String inputLine; while ((inputLine = in.readLine()) != null) { out.println(inputLine); } in.close(); } catch (Exception e){} 查询数据库进行登录问题 要实现这些看似简单的功能,却无从下手 503服务器不可用的错误????怎么办?? 读取XML文件后,乱码问题? 如何通过SevletContext获得其它用户的Session强迫某用户下线 求助啊~~~~~请问如何将username和password写入seesion中,谢谢 使用hibernate查询oracle数据 请教:jsp如何获得服务端的运行ip地址 请问在什么地方可以下载weblogic ? JfreeChart 怎么实现堆积折线双轴图? 从字符串中读取指定字符 关于中文在JSP提交页中无法得到的问题!!SOS
URL news = new URL("http://myserver/myservlet");
BufferedReader in = new BufferedReader(new InputStreamReader(news.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
{
out.println(inputLine);
}
in.close();
}
catch (Exception e){}