在java web种经常出现 404找不到网页的错误,究其原因,一般是访问的路径不对。
java web中的路径使用按我的分法可以分两种情况,当然啦两者使用相对路径是一致,本文只说绝对路径。
情况一、指向外部的web组件和本身关系不大的,这一类的有:html中使用路径的标签,比如标签中的href;servlet和jsp中的重定向sendRedirect(path);
情况二、指向内部...
分类:
编程语言 时间:
2014-08-11 00:25:51
阅读次数:
254
有个excle表格需要做一些过滤然后写入数据库中,但是日期类型的cell取出来是个数字,于是查询了下解决的办法。
基本的代码结构
data = xlrd.open_workbook(EXCEL_PATH)
table = data.sheet_by_index(0)
lines = table.nrows
cols = table.ncols
print u'The total lin...
分类:
编程语言 时间:
2014-08-11 00:24:31
阅读次数:
204
TypeError: Arguments to path.join must be strings at f (path.js:204:15) at Object.filter (native) at exports.join (path.js:209:40) at expo...
一 常量 /** * 主要定义了路径常量,项目中经常用到 **/ define('PHPCMS_PATH',dirname(__FILE__).DIRECTORY_SEPARATOR);// 项目根目录 define('IN_PHPCMS',true); ...
分类:
Web程序 时间:
2014-08-10 21:11:40
阅读次数:
374
mysqld程序:目录和文件basedir = path使用给定目录作为根目录(安装目录)。character-sets-dir = path给出存放着字符集的目录。datadir = path从给定目录读取数据库文件。pid-file = filename为mysqld程序指定一个存放进程ID的文...
分类:
数据库 时间:
2014-08-10 21:07:30
阅读次数:
387
TreeYou are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the bi....
分类:
其他好文 时间:
2014-08-10 18:11:20
阅读次数:
273
S-TreesA Strange Tree (S-tree) over the variable set is a binary tree representing a Boolean function . Each path of the S-tree begins at the root n.....
分类:
其他好文 时间:
2014-08-10 18:11:00
阅读次数:
415
① 下载 JDK 5 or JDK 6 (JRE alone is not sufficient) ->安装->设置环境变量JAVA_HOME CLASSPATH path下载地址:Download JDK② 下载 Eclipse 3.3 (Europa), 3.4 (Ganymede) IDE f...
分类:
移动开发 时间:
2014-08-10 18:04:50
阅读次数:
194
表4-1 fs 模块函数表 功能异步方法同步方法打开文件fs.open(path,flags, [mode], [callback(err, fd)])fs.openSync(path, flags, [mode])关闭文件fs.close(fd, [callback(err)])fs.clos.....
分类:
Web程序 时间:
2014-08-10 18:03:50
阅读次数:
367
文件夹 PATH 列表卷序列号为 000A-8F50E:.│ javaapk.com文件列表生成工具.bat│ 使用说明.txt│ 免费下载更多源码.url│ 目录列表.txt│ ├─android web应用│ jqmDemo_static.zip│ jqmMobileDemo-maste...
分类:
移动开发 时间:
2014-08-10 15:36:40
阅读次数:
590