/*
COPYRIGHT 1992-2004 ESRI
TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
Unpublished material - all rights reserved under the
Copyright Laws of the United States.
For additional information, contact:
Environmental Systems Research Institute, Inc.
Attn: Contracts Dept
380 New York Street
Redlands, California, USA 92373
email: contracts@esri.com
*/
import java.applet.Applet;
import java.awt.*;
import java.net.*;
import java.io.*;
public class jpost extends Applet {
String ln;
String tempString = null;
public static void main (String[] args)
{
}
public void init() {
}
public String postXML(String theURL, String theData) {
String theResponse = "Did not work";
tempString="";
int c;
StringBuffer str;
str= new StringBuffer(((int)1024));
try {
URL imsURL =
new URL(theURL);
URLConnection connection =
imsURL.openConnection();
connection.setDoOutput(true);
connection.setDoInput(true);
BufferedOutputStream bos = new BufferedOutputStream(connection.getOutputStream());
OutputStreamWriter out = new OutputStreamWriter(bos, "UTF8");
//PrintStream out = new PrintStream(connection.getOutputStream());
//out.println(theData);
out.write(theData, 0, theData.length());
out.flush();
out.close();
BufferedReader in =
new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF8"));
while ((ln = in.readLine()) != null) {
//showStatus(ln);
if (tempString == null) {
tempString = ln;
} else {
tempString = tempString + ln;
}
}
//theResponse = in.readLine();
theResponse = tempString.trim();
/*
BufferedReader in= new BufferedReader(((Reader)new InputStreamReader
(connection.getInputStream())));
while (true)
{
c= in.read();
if (c <= -1)
break;
str.append(((char)((char)c)));
}
theResponse = str;
*/
out.close();
in.close();
} catch(MalformedURLException mue) {
showStatus("Illegal URL: " + mue);
theResponse = "Illegal URL: " + mue;
} catch(IOException ioe) {
showStatus("IOException: " + ioe);
theResponse = "IOException: " + ioe;
} catch(Exception e) {
showStatus("Error: " + e);
theResponse = "Error: " + e;
}
return(theResponse);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
ArcIMS地图服务的事例,该事例主要用javascript完成
共732个文件
gif:369个
htm:235个
jpg:41个
4星 · 超过85%的资源 需积分: 3 37 下载量 156 浏览量
2008-06-26
12:12:47
上传
评论
收藏 1.15MB RAR 举报
温馨提示
ArcIMS地图服务的事例,该事例主要用javascript完成
资源推荐
资源详情
资源评论
收起资源包目录
ArcIMS地图服务的事例,该事例主要用javascript完成 (732个子文件)
dbParams.asp 3KB
subdbtable.asp 2KB
arcims_process.asp 2KB
address_process.asp 1KB
owner_process.asp 1KB
parcel_id_process.asp 1KB
address.asp 1KB
owner.asp 930B
parcel_id.asp 820B
aspForm.asp 499B
longbuttons.bmp 20KB
borders.bmp 2KB
address_process.cfm 3KB
parcel_id_process.cfm 3KB
owner_process.cfm 3KB
arcims_process.cfm 2KB
dbParams.cfm 2KB
address.cfm 2KB
owner.cfm 1KB
parcel_id.cfm 1KB
cfForm.cfm 526B
jpost.class 2KB
Web.config 8KB
Thumbs.db 83KB
Thumbs.db 71KB
Thumbs.db 38KB
Thumbs.db 21KB
Thumbs.db 8KB
Thumbs.db 7KB
Thumbs.db 6KB
content_globe2.gif 55KB
retrieveMap.gif 25KB
retrieveData.gif 24KB
RetrievingMap_BlueGray.gif 16KB
RetrievingData_BlueGray.gif 15KB
loadMap.gif 13KB
loadMap.gif 13KB
loadMap.gif 13KB
loadMap.gif 13KB
loadMap.gif 13KB
loadData.gif 13KB
loadData.gif 13KB
loadData.gif 13KB
loadData.gif 13KB
loadData.gif 13KB
RetrievingMap_Deco.gif 13KB
RetrievingData_Deco.gif 12KB
RetrievingMap_BlackAndBlue.gif 10KB
RetrievingData_BlackAndBlue.gif 9KB
extract_title.gif 9KB
Extract_swatch_title.gif 7KB
RedRetrievingData.gif 7KB
RedRetrievingMap.gif 7KB
red_screen.gif 5KB
gray_screen2.gif 5KB
gray_screen2.gif 5KB
gray_screen2.gif 5KB
arcimslogo.gif 4KB
arcimslogo.gif 4KB
arcimslogo.gif 4KB
arcimslogo.gif 4KB
arcimslogo.gif 4KB
arcimslogo.gif 4KB
arcimslogo.gif 4KB
horz_background.gif 4KB
red_swatch.gif 3KB
red_screen2.gif 2KB
buffershape_2.gif 1KB
buffershape_2.gif 1KB
aimslogo1x2.gif 1KB
aimslogo1x2.gif 1KB
aimslogo1x2.gif 1KB
aimslogo1x2.gif 1KB
aimslogo1x2.gif 1KB
aimslogo1x2.gif 1KB
fullextent.gif 1KB
zoomout.gif 1KB
selectbox_2.gif 1KB
zoomin.gif 1KB
zoomactive.gif 1KB
pan.gif 1KB
selectbox_2.gif 1KB
zoomlast.gif 1KB
select_2.gif 1KB
selectshape_2.gif 1KB
refresh_2.gif 1KB
pan_1.gif 1KB
select_2.gif 1KB
selectshape_2.gif 1KB
geocode_2.gif 1KB
refresh_1.gif 1KB
refresh_2.gif 1KB
identify_2.gif 1KB
refresh_1.gif 1KB
storedquery_2.gif 1KB
geocode_1.gif 1KB
query_2.gif 1KB
storedquery_2.gif 1KB
query_2.gif 1KB
buffershape_1.gif 1KB
共 732 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
- dongll112014-07-09还行吧,就是没怎么用
tyc114
- 粉丝: 4
- 资源: 47
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功