
JAVA WEB
为爱已成神
过往一切,皆为序章。
展开
-
在JSP页面获取js中的变量值
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'test.jsp' starti转载 2015-12-29 13:58:04 · 9211 阅读 · 0 评论 -
web.xml 配置中classpath: 与classpath*:的区别
首先 classpath是指 WEB-INF文件夹下的classes目录解释classes含义:1.存放各种资源配置文件 eg.init.properties log4j.properties struts.xml2.存放模板文件 eg.actionerror.ftl3.存放class文件 对应的是项目开发时的src目录编译文件总结:这是一个定位资源的入口如果你知道开发过程...转载 2019-03-21 16:06:20 · 200 阅读 · 0 评论