• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
第二天半
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 5 6 7 8 9 10 下一页
2015年1月4日
struts配置请求后缀,将.action改为.do、.doaction_2015.01.04
摘要: /showresult.jsp 原访问地址:http://localhost:8080/Struts2_01/test/helloworld.acti... 阅读全文
posted @ 2015-01-04 23:01 第二天半 阅读(480) 评论(0) 推荐(0)
通过struts.xml搭建、为属性注入值_2015.01.04
摘要: 01:web.xml配置: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter ... 阅读全文
posted @ 2015-01-04 22:09 第二天半 阅读(204) 评论(0) 推荐(0)
2014年12月31日
JSP 中 forward 和 redirect 的区别_2014.12.31
摘要: 重定向,只能访问工程下(WebRoot文件夹)的页面,不能访问到内部(WEB_INF文件夹)的页面1.从地址栏显示来说:forward浏览器显示路径不变,redirect浏览器显示路径改变forward是服务器请求资源,服务器直接访问目标地址的URL,把那个URL的响应内容读取过来,然后把这些内容再... 阅读全文
posted @ 2014-12-31 18:04 第二天半 阅读(227) 评论(0) 推荐(0)
2014年12月30日
Struts2的Action名称搜索顺序:2014.12.30
摘要: struts.xml配置: /WEB-INF/actionpage/showresult.jsp 正确访问路径:http://localhost:8080/Struts2_01/test/helloworld如果浏览器访问路径:先访问路径:“http://localhos... 阅读全文
posted @ 2014-12-30 23:10 第二天半 阅读(155) 评论(0) 推荐(0)
2014年12月17日
Java泛型01--任意数组中两元素交换
摘要: package com.zl.generic;/** * 交换“任意”数组 中两个元素 */public class GenericSwapArray { public static void main(String[] args) { swap(new String[]{"1","2","3"}... 阅读全文
posted @ 2014-12-17 18:28 第二天半 阅读(1022) 评论(0) 推荐(0)
2014年12月9日
反射认识_06_ArrayList_HashSet区别
摘要: 包01:package ReflectionCollection;public class ReflectionConstructorPoint { private int x; public int y; public ReflectionConstructorPoint(int x, int ... 阅读全文
posted @ 2014-12-09 20:04 第二天半 阅读(193) 评论(0) 推荐(0)
2014年12月8日
反射认识_05_数组反射_打印
摘要: package ReflectionMethod;import java.lang.reflect.Array;public class ReflectionArrayPrint { public static void main(String[] args) { int[] a=new int[... 阅读全文
posted @ 2014-12-08 09:45 第二天半 阅读(133) 评论(0) 推荐(0)
2014年12月6日
反射认识_04_反射调用类方法Method
摘要: 包1:package ReflectionMethod;public class ReflectionMethod { String str1="str1"; public void outStr1(){ System.out.println("输出第一个字符串:"+str1); } publi... 阅读全文
posted @ 2014-12-06 22:13 第二天半 阅读(185) 评论(0) 推荐(0)
反射认识_03_改变成员变量Fields
摘要: 包01:package ReflectionChange;public class ReflectionPoint_AB { String str1="access"; String str2="change"; String str3="reflection"; @Override public... 阅读全文
posted @ 2014-12-06 21:38 第二天半 阅读(167) 评论(0) 推荐(0)
2014年12月4日
反射认识_02_反射成员变量Field
摘要: 包01:package ReflectionConstructor;public class ReflectionFieldPoint { private int x; public int y; public ReflectionFieldPoint(int x, int... 阅读全文
posted @ 2014-12-04 23:08 第二天半 阅读(352) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3