使用JDOM时的问题 顶一下。关于XML文件的访问应该经常用到的吧? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //得到与当前文件对应的.class文件的上一级目录路径 URL url = this.getClass().getResource("LogQueryApp.class"); String sPath = url.getPath(); int index=sPath.lastIndexOf("/"); sPath=sPath.substring(0,index); index=sPath.lastIndexOf("/"); sPath=sPath.substring(0,index+1); strPath=sPath.substring(1); jComboBox_sProgramName_final(this.strPath+"edition.xml"); request.getSession().getServletContext().getRealPath("/WEB-INF/");用这个方法来取得目前的WEB-INF目录的绝对地址,然后就可以再拼上相对地址来取得你需要的目录 struts2中select问题 Action class [tutorial.IocServlet] not found 问题 100分求助 JSP页面日历问题 weblogic下部署web应用的url问题 用struts上传文件至tomcat,想保存文件名至mysql 如何能调试ejb? 一个关于WEB应用程序的严重问题不知道怎么解决? web项目服务端“推”数据给client端问题 请问axis中数据存储在什么地方的呀? 谁了解北京软通动力科技公司的情况,说一下好吗 搞Struts的兄弟一般都用什么连接方式来连接数据库 800里加急!!!!!!!伴随远程控制tomcat运行异常问题
String sPath = url.getPath();
int index=sPath.lastIndexOf("/");
sPath=sPath.substring(0,index);
index=sPath.lastIndexOf("/");
sPath=sPath.substring(0,index+1);
strPath=sPath.substring(1);
jComboBox_sProgramName_final(this.strPath+"edition.xml");