<html>
<body>
<table border=1>
<applet code="Grotate.class" width=300 height=300>
<param name="posname" value="voltage_pos.gif"/>
</applet>
</body></html>
这个客户端的applet取“Grotate.class”和图片“voltage_pos.gif”的“请求”能不能在https协议下传输服务器。因为我的服务器是只支持https的。怎么样取?希望高手给予指点!我想破头都没想出来,公司也没人指点,郁闷那。
<body>
<table border=1>
<applet code="Grotate.class" width=300 height=300>
<param name="posname" value="voltage_pos.gif"/>
</applet>
</body></html>
这个客户端的applet取“Grotate.class”和图片“voltage_pos.gif”的“请求”能不能在https协议下传输服务器。因为我的服务器是只支持https的。怎么样取?希望高手给予指点!我想破头都没想出来,公司也没人指点,郁闷那。
* 该方法根据querystring向服务端的Servlet提交请求.返回的结果存在Document中.
* 这里的querystring与JSP中的querystring相似.
*/
public CSTObject getQueryResult(String queryString_) { try {
String host_ = "192.168.0.16";
String urlString_ = "http://" + host_
+ "/MainServlet? + queryString_;
URL url = new URL(urlString_);
URLConnection con = url.openConnection();
if (cookie != null)
con.addRequestProperty("Cookie", cookie);
con.connect();
ObjectInputStream input = new ObjectInputStream(con
.getInputStream());
Document theResult_ = (Document) input.readObject();
return theResult_; //返回的是Document对象
} catch (Exception e) {
System.out.println("网络不通!");
return null;
}
}其中MainServlet是一个Servlet;