- 浏览: 14628 次
- 性别:
- 来自: 北京
最新评论
文章列表
<link href="jquery.ui.theme.css" rel="stylesheet" type="text/css" OLDSRC="jquery.ui.theme.css" />
<script type="text/javascript" src="jquery-1.6.2.min.js" OLDSRC="jquery-1.6.2.min.js" ></script>
<script type= ...
信息: Starting Servlet Engine: Apache Tomcat/6.0.322012-4-13
11:18:36
org.apache.catalina.core.StandardContext resourcesStart
严重: Error
- 2012-09-04 09:55
- 浏览 794
- 评论(0)
1、老是弹出Quick update error 、关闭myeclipse的Quick Update自动更新功能
这个问题的解决办法是关闭自动更新
Windows > Preferences > MyEclipse Enterprise Workbench > Community Essentials,
把选项 "Search for new features on startup"的前勾去 ...
- 2012-09-04 09:35
- 浏览 533
- 评论(0)
解释一:
屏蔽某些编译时的警告信息
在强制类型转换的时候编译器会给出警告
加上
程序代码
@SuppressWarnings("unchecked")
就不会警告了
解释二:
注释类型
当你的编码可能存在警告时,比如安全警告, ...
- 2012-09-03 13:30
- 浏览 759
- 评论(0)
web.xml
<!-- Spring 配置文件 -->
<context-param><param-name>contextConfigLocation</param-name><param-value>classpath:applicationContext*.xml,classpath*:spring/*.xml</param-value></context-param>
classpath:找到发布目录下找到根路径。
- 2012-09-03 10:55
- 浏览 552
- 评论(0)
分类:Java 围观
394 评论 0 2012-03-22 19:19:53
1、win7 下 Package Explorer 横向滚动条自动移动,很不安分!解决办法:启动时用兼容模式。
2、MyEclipse6.5 注册码(适用版本号:Version: 6.5.0 GA Build id: 6.5.0-GA-20080609),打开 MyEclipse,运行文件MyEclipseGen.java 里的代码。
MySets 0.00MB
3、取消验证:依次点开 Window > Preferences ,输入“val”,点击“validation”,在列表里点击复选框取 ...
- 2012-08-08 16:14
- 浏览 856
- 评论(0)
//list迭代器
for(StOrg stOrg:list){
if(!stOrg.getId().equals(id)){list1.add(stOrg);}
}
//string 转 int
i=Integer.parseInt(s);
- 2012-07-27 14:07
- 浏览 547
- 评论(0)
jQuery Ajax 实例 全解析
jQuery确实是一个挺好的轻量级的JS框架,能帮助我们快速的开发JS应用,并在一定程度上改变了我们写JavaScript代码的习惯。
废话少说,直接进入正题,我们先来看一些简单的方法,这些方法都是对jQuery.ajax()进行封装以方便我们使用的方法,当然,如果要处理复杂的逻辑,还是需要用到jQuery.ajax()的(这个后面会说到).
1. load( url, [data], [callback] ) :载入远程
HTML 文件代码并插入至 DOM 中。
- 2012-07-27 13:46
- 浏览 710
- 评论(0)
后台传值
//getRequest().setAttribute传值,没有set,get方法前台取值
<s:select list="%{#request.list1}" id="stOrg" name="stOrg"theme="simple" headerKey=""headerValue="--请选择--" listKey="id" listValue="orgName"></s:select>
< ...
- 2012-07-27 13:20
- 浏览 616
- 评论(0)
OGNL表达式struts2标签“%,#,$”
- 博客分类:
- Jsp
[size=x-large][size=large]OGNL表达式struts2标签“%,#,$”
一、什么是OGNL,有什么特点?
OGNL(Object-Graph Navigation Language),大概可以理解为:对象图形化导航语言。是一种可以方便地操作对象属性的开源表达式语言。OGNL有如下特点:
1、支持对象方法调用,形式如:objName.methodName();
2、支持类静态的方法调用和值访问,表达式的格式为@[类全名(包括包路)]@[方法名 | 值名],例如:
@java.lang.String@f ...
OGNL表达式struts2标签“%,#,$”
一、什么是OGNL,有什么特点? <wbr><wbr></wbr></wbr>
<wbr><wbr></wbr></wbr>
OGNL(Object-Graph<wbr>Navigation<wbr>Language),大概可以理解为:对象图形化导航语言。是一种可以方便地操作对象属性的开源表达式语言。OGNL有如下特点:<wbr><wbr><wbr></wbr></w ...
- 2012-07-27 13:04
- 浏览 580
- 评论(0)
Struts2配置文件详解
- 博客分类:
- Struts2
struts.action.extension
The URL extension to use to determine if the request is meant for a Struts action
用URL扩展名来确定是否这个请求是被用作Struts action,其实也就是设置 action的后缀,例如login.do的'do'字。
struts.configuration
The org.apache.struts2.config.Configuration implementation class
...
// Strng转为int
if(isLead1!=null&&isLead1!=""){
isLead = Integer.parseInt(isLead1);
}
int isLead=Integer.parseInt(String s);
tomcat 虚拟主机配置
第一步、 <Host name="www.dykj.com" debug="0" appBase="D:\Tomcat50\webapps\dykj">
<Context path="" docBase="." debug="0"/>
</Host>
<Host name="www.zhip.com" debug="0" appBase="D ...
- 2012-04-28 14:24
- 浏览 619
- 评论(0)
DAO:
public List<Object[]> findbyContSQL(){String sql="SELECT count(*),count(case nationality when 'CN' then id end) as countCN,"+" count(case nationality when 'CN' then case substring(cardno,0,3) when '110' then id end end) as countBeiJing,"+" count(case nationality w ...
- 2012-04-21 15:39
- 浏览 725
- 评论(0)