Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java EE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:有关jsp配置的问题,急!急!急!急! [Re:yeehya]
yeehya





发贴: 9
积分: 0
于 2004-05-20 09:53 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
public void init()
throws ServletException
{
String strParam = getInitParameter("mapxtremeurl");
if(strParam != null && strParam.length() > 0)
mapxtremeurl = strParam;
strParam = getInitParameter("imgtype");
if(strParam != null && strParam.length() > 0)
imgtype = strParam;
strParam = getInitParameter("imgsizex");
if(strParam != null && strParam.length() > 0)
imgsizex = (new Integer(strParam)).intValue();
strParam = getInitParameter("imgsizey");
if(strParam != null && strParam.length() > 0)
imgsizey = (new Integer(strParam)).intValue();
strParam = getInitParameter("smallimgsizex");
if(strParam != null && strParam.length() > 0)
smallimgsizex = (new Integer(strParam)).intValue();
strParam = getInitParameter("smallimgsizey");
if(strParam != null && strParam.length() > 0)
smallimgsizey = (new Integer(strParam)).intValue();
strParam = getInitParameter("imgbgcolor");
if(strParam != null && strParam.length() > 0)
imgbgcolor = new Color((new Integer(strParam)).intValue());
strParam = getInitParameter("datasource");
if(strParam != null && strParam.length() > 0)
datasource = strParam;
if(datasource == null)
errset("请指定数据源类型");
else
if(datasource.equals("oracle"))
{
strParam = getInitParameter("database");
if(strParam != null && strParam.length() > 0)
database = strParam;
if(database == null)
errset("请指定数据库url");
strParam = getInitParameter("dbusername");
if(strParam != null && strParam.length() > 0)
dbusername = strParam;
strParam = getInitParameter("dbpassword");
if(strParam != null && strParam.length() > 0)
dbpassword = strParam;
strParam = getInitParameter("dbtable");
if(strParam != null && strParam.length() > 0)
dbtable = strParam;
strParam = getInitParameter("dbnamecol");
if(strParam != null && strParam.length() > 0)
dbnamecol = strParam;
strParam = getInitParameter("dbmapdefcol");
if(strParam != null && strParam.length() > 0)
dbmapdefcol = strParam;
} else
if(datasource.equals("file"))
{
strParam = getInitParameter("filetype");
if(strParam != null && strParam.length() > 0)
filetype = strParam;
if(filetype.equals("mdf"))
{
strParam = getInitParameter("mdfpath");
if(strParam != null && strParam.length() > 0)
mdfpath = strParam;
if(mdfpath == null)
errset("请指定mdf地图定义文件路径");
} else
{
strParam = getInitParameter("gstpath");
if(strParam != null && strParam.length() > 0)
gstpath = strParam;
if(gstpath == null)
errset("请指定gst地图定义文件路径");
}
}
strParam = getInitParameter("mapdef");
if(strParam != null && strParam.length() > 0)
mapdef = strParam;
if(mapdef == null)
errset("请指定地图定义名称");
try
{
MapJ tempmap = initMapJ();
resetpoint = tempmap.getCenter();
resetzoom = tempmap.getZoom();
}
catch(Exception e)
{
e.printStackTrace();
}
}
这是servlet中init()是不是有问题呀`?




如何用JTable设置表头多行

话题树型展开
人气 标题 作者 字数 发贴时间
2980 有关jsp配置的问题,急!急!急!急! yeehya 6055 2004-05-19 22:13
2509 Re:有关jsp配置的问题,急!急!急!急! whirl79 51 2004-05-19 23:04
2624 Re:有关jsp配置的问题,急!急!急!急! yeehya 3779 2004-05-20 09:53

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923