![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 70
killercentury
Look into the world, and look out of the world.
展开
-
import static net.mindview.util.Print.*的傻瓜问题
相信不少人在看《Thinking in Java(Fourth Edition)》的第三章-操作符的时候,Eckel会让大家在环境变量CLASSPATH中加上原书配套的代码目录树的根目录,但是我刚开始的时候,在HelloDate.java中的import static net.mindview.util.Print.*每次编译都证明没有import成功,网上存在这样的问题很少,原创 2007-08-23 20:07:00 · 13574 阅读 · 18 评论 -
JavaServer Pages Overview
Contents - Benefits for Developers - JSP Technology and Java Servlets -翻译 2008-06-09 01:58:00 · 1195 阅读 · 0 评论 -
Myeclipse - some characters cannot be mapped using "ISO-8859-1" charater encoding
PrefaceIDE: MyeclipseProblem: some characters cannot be mapped using "ISO-8859-1" charater encodingIntroduction本文主要讲述如何解决以上的问题。Solution1. 在对应文件的properties中将Text file encoding选为other然后再选UTF原创 2008-06-03 15:08:00 · 4137 阅读 · 3 评论 -
Sturts tag 中logic:present 和logic:empty 的区别
logic:present 和 logic:empty他们的用法大致相同,唯一的不同点是:两者在对空字符串的处理上存在着不同。下面为index.jsp中的代码: 1 logic:notPresent name="users"> 2 notpresent 3 logic:notPresent> 4 logic:notEmpty name="users"> 5 notempty 6 logic转载 2008-05-23 19:38:00 · 995 阅读 · 0 评论 -
Struts Checkbox 动态设置
Preface在浏览本文之前,请保证大概了解Struts Tag的一般用法。Introduction本文主要讲述struts html tag中的checkbox在jsp page显示时如何显示被选状态。Section 1 - Requirement在很多情况下,我们需要让显示给用户看和填充的jsp page的某些text, checkbox等被初始化为特定值,或者根据data原创 2008-05-26 14:09:00 · 1405 阅读 · 0 评论 -
Exception thrown by getter for property, bean org.apache.struts.taglib.html.BEAN
Preface在浏览本文之前,请确定你是在以下相似environment和condition下遇到相似问题。Environment:OS: Windows XPLanguage: Java 1.5Framework: Struts 1.3IDE: MyEclipse 6.0Condition:在jsp page正常,在actionForm中用到object class。Introd原创 2008-05-22 17:48:00 · 5479 阅读 · 0 评论 -
Fund Manager System Function Enhancement List
Function Enhancement1. The add/update/delete confirm message send back to the browser is from the actionForm but not the really value from database. It wait for enhancement.2. When update the Fund原创 2008-05-18 22:24:00 · 697 阅读 · 0 评论 -
request.getParameter和reques.getAttribute的区别
HttpServletRequest类既有getAttribute()方法,也由getParameter()方法,这两个方法有以下区别:(1)HttpServletRequest类有setAttribute()方法,而没有setParameter()方法(2)当两个Web组件之间为链接关系时,被链接的组件通过getParameter()方法来获得请求参数,例如假定welcome.jsp和authe转载 2008-05-18 15:15:00 · 1005 阅读 · 0 评论 -
Java Web Project 技巧备忘录
1. 案例场景:以下是一个n row × 2 col 的表,并且每一行可以独立作为一条link把parm pass去action或者jsp page。 现在在禁止用button的情况下,想不用hard code的方法在url上把parm pass出去,而是通过actionForm把value原创 2008-05-18 21:27:00 · 1187 阅读 · 0 评论 -
Exception: BeanUtils.populate, argument type mismatch
Preface在浏览本文之前,请确定你是在以下相似environment和condition下遇到相似问题。Environment:OS: Windows XPLanguage: Java 1.5Framework: Struts 1.3IDE: MyEclipse 6.0Condition:在jsp page上有Date的input,而在actionForm中相应地define了Da原创 2008-05-22 02:29:00 · 7230 阅读 · 4 评论 -
Java中的Date Time 与SQL Server 2005里的Datetime 之间的交互
PrefaceEnvironment:Platform: Windows XPLanguage: Java 1.5IDE: MyEclipse 6.0.1Database: SQL Server 2005 Enterprise enIntroduction本文主要讲述Java中的Date Time 与SQL Server 2005里的Datetime 如何进行交互。涉及到的Date T原创 2008-05-20 15:34:00 · 6196 阅读 · 0 评论 -
JSP 2.1-2.5上用JSTL和EL(表达式语言)的问题
Preface在浏览本文之前,请你保证正在使用的是JSP 2.1以上Version,JSP页面上使用到JSTL和EL(表达式语言)。Introduction本文主要讲述在JSP 2.1以上Version中使用JSTL时遇到的EL(表达式)问题。ContentStep 1 - Problem Description我们通常根据一些书本或者教程的例子去做时往往会出现一些问题,那原创 2008-05-16 19:03:00 · 1700 阅读 · 0 评论 -
Struts,MVC 的一种开放源码实现
Refer from:http://www.ibm.com/developerworks/cn/java/j-struts/本文介绍 Struts,它是使用 servlet 和 JavaServer Pages 技术的一种 Model-View-Controller 实现。Struts 可帮助您控制 Web 项目中的变化并提高专业化水平。尽管您可能永远不会用 Struts 实现一个系统,但转载 2008-05-12 02:50:00 · 599 阅读 · 0 评论 -
Tomcat 5.5 Administration Web Application Installation
Perface在浏览本文前,请正确安装好Tomcat 5.5,其安装过程在本文不再阐述。同时保证你是需要用到Administration Web Application,但本机还没有installation好。而本文的产生主要是因为Tomcat 5.5没有再像Tomcat 5一样default安装了Administration Web Application,需要单独download和inst原创 2008-04-25 16:16:00 · 703 阅读 · 0 评论 -
重新设置 WSAD 5.X Workspace
当我们用WebSphere Application Developer (WSAD) 5.X 时,应该都曾经遇到过一个问题,就是在启动WSAD前,设置workspace时勾了"Use this workspace as the default and do not show this dialog box again"的选项,从而发觉设置worskpace地址的dialog不再出现,在设置菜单中原创 2008-03-20 00:06:00 · 744 阅读 · 0 评论 -
Java IDE 界面语言转换
最近用了不同的Java IDE,但是因为用惯了英文版,所以都把原来自动安装成中文版的IDE都改回英文版。 Following are the ways for different IDE to change the language form chinese to english:(1) NetBean 6.0 Open the file netbeans.conf (for exam原创 2008-03-01 00:54:00 · 1256 阅读 · 0 评论 -
Exception in thread "main" java.lang.NoClassDefFoundError 问题及其解决方法
Preface 在浏览本文之前,请保证已经安装好JDK, JRE,并且对如何设置classpath有基本认识。EnvironmentOS: Windows XPJava Development Kit: 1.6.0_06Java Runtime Environemt: 6Introduction本文主要讲述在CMD上run Java program 时可能遇到的 Exc原创 2009-05-06 00:20:00 · 17707 阅读 · 3 评论