上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 44 下一页
摘要: 本方法针对MyEclipse6.x版本有效 我的MyEclipse安装在C:\Program Files\MyEclipse 6.5 关闭MyEclipse,找到文件夹C:\Program Files\MyEclipse 6.5\eclipse\configuration\org.eclipse.update\ 把last.config.stamp文件删掉,启动MyEclipse,Update P... 阅读全文
posted @ 2008-10-23 10:14 魔豆 阅读(6266) 评论(0) 推荐(0) 编辑
摘要: 下面的代码把数组的内容以“,”分隔,组合到一个字符串中: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> public static void main(String[] args) { String[] obj = {"aa"... 阅读全文
posted @ 2008-10-21 14:16 魔豆 阅读(807) 评论(0) 推荐(0) 编辑
摘要: 在XML文档中预定义好的实体: &lt; 大于号 &amp; & 和 &apos; ' 单引号 &quot; " 双引号 实体必须以符号"&"开头,以符号";"结尾。 注意: 只有"<" 字符和"&"字符对于XML来说是严格禁止使用的。剩下的都是合法的,为了减少出错,使用实体是一个好习惯。 阅读全文
posted @ 2008-10-21 14:09 魔豆 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 做的项目,在tomcat下跑没有问题,可是以war包的形式发布到weblogic上就出错了,getRealPath方法找不到路径: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->String xmlFilePath = ServletActionC... 阅读全文
posted @ 2008-10-20 14:02 魔豆 阅读(1123) 评论(0) 推荐(0) 编辑
摘要: 用URL传参带特殊字符,特殊字符丢失 有些符号在URL中是不能直接传递的,如果要在URL中传递这些特殊符号,那么就要使用他们的编码了。编码的格式为:%加字符的ASCII码,即一个百分号%,后面跟对应字符的ASCII(16进制)码值。例如 空格的编码值是"%20"。 如果不使用转义字符,这些编码就会当URL中定义的特殊字符处理。 下表中列出了一些URL特殊符号及编码 十六进制值 1、+ URL 中+... 阅读全文
posted @ 2008-10-16 19:23 魔豆 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 1. File->New->Applet Superclass使用javax.swing.JApplet,Options勾选 init() and destroy() ,进入下一步 Code Base改为applets/,FilePath选到Web根目录即可,完成 2.修改建立的Applet类文件的init事件: Code highlighting produced by Actipro C... 阅读全文
posted @ 2008-10-15 19:52 魔豆 阅读(788) 评论(0) 推荐(0) 编辑
摘要: 1. 取当前日期select SYSDATE from dual 2. 数值取整select trunc(3.5) from dual //return 3select trunc(-3.5) from dual //return -3 3. 分析函数RANK的使用有这么一个表table1 user 阅读全文
posted @ 2008-10-15 13:32 魔豆 阅读(756) 评论(0) 推荐(0) 编辑
摘要: Struts2的值是保存在ValueStack中的,假设有一个字符串str,我们一般是这么取值的: 或者 ${str} 如果想在jsp中使用的话,可以这么取: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->…… 也可以把ValueStac... 阅读全文
posted @ 2008-10-14 18:53 魔豆 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 我是通过菜单MyEclipse->Project Capabilities添加了对Hibernate的支持 添加容易,删除难,菜单里好像没有删除对Hibernate支持的功能,只能手工删除了: 1.把项目根目录下文件.myhibernatedata删除 2.修改项目根目录下文件.project:删除其中两段内容: Code highlighting produced by Actipro Cod... 阅读全文
posted @ 2008-10-09 20:01 魔豆 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 开发过程中,我对struts2的s:component标签情有独钟,对于需要重复构建的内容,使用s:component是一个很好的解决办法。 s:component默认是使用freemarker模板方式处理 我用的IDE是MyEclipse6.5,使用的是默认的GBK编码:可以在这里查看:Window->Preferences->Workspace->Text file encoding stru... 阅读全文
posted @ 2008-10-09 18:44 魔豆 阅读(2718) 评论(0) 推荐(0) 编辑
摘要: 先添加一个bean: Test1.java Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package test;public class Test1 { private String str; public String getSt... 阅读全文
posted @ 2008-10-08 11:49 魔豆 阅读(4187) 评论(0) 推荐(0) 编辑
摘要: 1.访问页面请求的参数 ${request.getParameter(name)} 或 ${name}:${request.getParameter(name)} 2.访问Session的内容 ${Session[name]} 3.获取struts2中s:component传递的参数的内容 ${parameters.name} 4.访问struts2中viewStack的内容 ${st... 阅读全文
posted @ 2008-10-08 11:43 魔豆 阅读(830) 评论(0) 推荐(0) 编辑
摘要: 1.生成0~9之间的随机数 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> public static void main(String[] args) { Random rnd = new Random(); S... 阅读全文
posted @ 2008-10-08 10:35 魔豆 阅读(3725) 评论(0) 推荐(0) 编辑
摘要: 或者 阅读全文
posted @ 2008-10-06 13:38 魔豆 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 第一个例子:动态的加载一个页面到div中 test1.jsp Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> test2.jsp Code highlighting produced by Actipro CodeHighlighter (fr... 阅读全文
posted @ 2008-10-04 17:33 魔豆 阅读(1686) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 44 下一页