`
wxb_j2ee
  • 浏览: 136233 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
配置 tiles 时,报出了异常信息:   The content of element type "struts-config" must match "(display-name?,description?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".   解决办法:   struts-config.xml 中的元素顺序有严格的要求,它们的位置不能错位,不然就会报错. ...
配置 struts 1.X 版本的 tiles 的时候,当出现异常:   java.lang.IllegalArgumentException: Path search.page does not start with a "/" character     解决办法:   查看在 struts-config.xml 中是否配置<controller>。     <controller> <set-property property="processorClass" value=& ...
<input name="info" id="info" type="text" value="value1234567890" disabled="disabled"/>     <input name="info" id="info" type="text" value="value1234567890" readonly="readonly"/>        ...
<logic:iterate> 是Logic 标签库中最复杂的标签,也是用途最广的一个标签,它能够在一个循环中遍历数组、Collection、Enumeration、Iterator 或 Map 中的所有元素    length    属性指定需要遍历的元素的数目, 如果没有设置length 属性, 就遍历集合中的所有元素.  offset      属性指定开始遍历的起始位置, 默认值为 "0" , 表示从集合的第一个元素开始遍历.  indexId  属性定义一个代表当前遍历元素序号的变量, 这个变量被存放在 page 范围内, 可以被标签<bean ...
MyEclipse在Java文件中设置作者、日期等说明:windows(窗口)----------------Preferences(首选项)-------------Java(语言项)------------Code Style(代码样式)----------------------Code Templates(代码模版)----------------------右侧Comments(注释时)||右侧Code(新建类时)-----------------选择Types等..(类型)-----------点击edit(编辑)-------------输入如下信息   /**  * @aut ...
配置好JSTL(略.....),页面引入 <%@ taglib uri="http://java.sun.com/jstl/c" prefix="c"%>    判断集合和对象是否为空: list为集合,user为对象名 <c:if test="${empty user}">无user信息!TODO...</c:if>为空 <c:if test="${!empty list}">list集合不为空判断,TODO...</c:if>非空   ...
今天用jstl时候,在用tablib方法实现时,在页面引用 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   一加载页面,就会异常:org.apache.taglibs.standard.tlv.JstlCoreTLV   原因是缺少.jar文件   缺少standard.jar或者servlet-api.jar,或者都缺少
native2ascii -encoding UTF-8 源文件.properties 生成的目标文件.properties   
Math.ceil求最小的整数,但不小于本身.   /** * @see 求最小的整数,但不小于本身 * @param double * @return double */ System.out.println(Math.ceil(-1.1)); System.out.println(Math.ceil(-1.9)); System.out.println(Math.ceil(1.1)); System.out.println(Math.ceil(1.9));    输出结果: -1.0 -1.0 2.0 2.0   Math.floor求 ...
import java.io.File; import java.util.Calendar; import org.apache.struts2.ServletActionContext; private static final Logger logger = Logger.getLogger(PictureAction.class);   按年月创建文件夹:    Calendar cad = Calendar.getInstance(); String month=String.valueOf(cad.get(Calendar.MONTH) + 1); i ...
A类: package test3; public class A { public String public_str = "A_public_str"; protected String protected_str = "A_protected_str"; String default_str = "A_default_str"; private String private_str = "A_private_str"; public void access(){ ...
<script language="javascript"> function refresh() { top.location.href = "http://www.tzyol.com/home.html"; } setTimeout('refresh()',3000); </script>   setTimeout 自动刷新 3000毫秒,即3秒后刷新     window.location.href location.href  是本页面跳转   p ...
备份一下,以后继续学习   1.类似百度的数字分页    2.首页、上一页、下一页、末页       我做的例子是Eclipse环境下的   这是我的结构图:         以下是代码:    1 . web.xml   <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://j ...

java创建文件夹

    博客分类:
  • java
/** * 创建文件夹 * @param args */ public static void main(String[] args) { try { File dirFile = new File("E:/tt/aa/bb/cc/dd"); boolean bFile = dirFile.exists(); if (bFile == true) { System.out.println("The folder exists."); } else { System.out.pr ...
System.exit(0);  ----------------------0时,表示正常结束(退出)程序 System.exit(1);  ----------------------1时,表示异常结束(关闭)程序   System.exit()中的参数,一般是操作系统用!   主要是线程,或者是进程之间通讯的结果.也就是程序退出了,但是其他跟别的进程,或者是线程有关系,那就要采用一种方式通知对方.
Global site tag (gtag.js) - Google Analytics