文章列表
//是否为空校验
function isEmpty(s) {
var lll=trim(s);
if( lll == null || lll.length == 0 )
return true;
else
return false;
}
//删除字符串左边的空格
function ltrim(str) {
if(str.length==0)
return(str);
else {
var idx=0;
while(str.charAt(idx).search(/\s/)==0)
idx++;
return(str.substr(idx));
}
}
...
- 2008-11-23 18:41
- 浏览 2459
- 评论(0)
[size=xx-small]public class LogoutAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) throws IOException { HttpSession session = request.getSession();
session.removeAttribute("username");
se ...
- 2008-11-21 09:05
- 浏览 1628
- 评论(0)
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springfr ...
- 2008-11-19 10:57
- 浏览 932
- 评论(0)
打开Window-->preferece-->myeclipce-->fils and editors-->xml-->catalog
然后单击add按钮 在keytype中选择url,在location选择file system然后找到你放Spring源文件解压包文件夹下的G:\spring-framework-2.0-with-dependencies\spring-framework-2.0\dist\resources
所有的xsd文件,在把key type 改为Schema Location把文件名添加到key中
http://www.springfram ...
- 2008-11-15 10:52
- 浏览 952
- 评论(0)