kosam

任重道远 毋忘奋斗

导航

随笔分类 -  javaWeb

关于struts2的Unable to load configuration. - Class: java.net.Plain
摘要:异常代码严重: Exception starting filter struts2Unable to load configuration. - Class:java.net.PlainSocketImplFile: PlainSocketImpl.javaMethod: connectLine: ... 阅读全文

posted @ 2013-06-16 00:17 kosam 阅读(166) 评论(0) 推荐(0)

java.lang.NoClassDefFoundError: com/opensymphony/xwork2/config/FileManagerProvider
摘要:严重: Exception starting filter struts2java.lang.NoClassDefFoundError: com/opensymphony/xwork2/config/FileManagerProvider at org.apache.struts2.dispatch... 阅读全文

posted @ 2013-06-15 08:54 kosam 阅读(1238) 评论(0) 推荐(0)

hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*
摘要:hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*在写配置的时候出现这个问题,解决方法:将hibernate-mapping换成hibernate-config... 阅读全文

posted @ 2013-05-24 16:30 kosam 阅读(294) 评论(0) 推荐(0)

hibernate配置文件hibernate.cfg.xml的详细解释
摘要:hibernate配置文件hibernate.cfg.xml的详细解释 com.mysql.jdbc.Driver jdbc:mysql://localhost/hibernate root 1... 阅读全文

posted @ 2013-05-24 15:37 kosam 阅读(155) 评论(0) 推荐(0)

struts2从请求取值的三种方式
摘要:Struts2作为WEB框架,必不可少的需要请求中取值。(我在这里说是从请求中取值对于一些读者可能有些晦涩,其实如果我说从页面取值可能就好理解一点了,但除了从已经存在的页面里面能够给后台传值,在地址栏里也可以传,甚至在java代码里也是可以的。)这里就谈谈struts如何从请求中取值。我介绍三种方式... 阅读全文

posted @ 2013-05-23 01:06 kosam 阅读(338) 评论(0) 推荐(0)

Struts2使用DoubleSelect实现二级级联下拉框省份城市
摘要:Inserttitle here 阅读全文

posted @ 2013-05-19 22:32 kosam 阅读(252) 评论(0) 推荐(0)

No tag "datetimepicker" defined in tag library imported with prefix "s"解决
摘要:今天在学习Struts2标签中的datetimepicker出现这样一个exception:Notag"datetimepicker"definedintaglibraryimportedwithprefix"s"原因:struts2.3.8 把struts2中的和ajax相关的,如datetime... 阅读全文

posted @ 2013-05-18 01:33 kosam 阅读(978) 评论(0) 推荐(0)

通过页面往数据库添加中文信息时中文乱码
摘要:要通过页面往数据库中添加中文信息,有时候会出现中文乱码,Struts2框架提供了一个很简单的解决方法,那就是,在struts.xml文件中添加下述语句: 阅读全文

posted @ 2013-05-16 23:52 kosam 阅读(317) 评论(0) 推荐(0)

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
摘要:java.lang.RuntimeException:java.lang.reflect.InvocationTargetException在使用struts-2.3.8时,部署启动tomcat6.0时报错,导入javassist-3.11.0.GA.jar,重新启动就好了! 阅读全文

posted @ 2013-05-16 10:28 kosam 阅读(325) 评论(0) 推荐(0)

用jsp写的网页 怎么在传递参数时包含中文?
摘要:用jsp写的网页 怎么在传递参数时包含中文? 2011-06-21 17:58yuqiangdede| 分类:其他编程语言| 浏览428次jsp中">在Servelt中 request.setCharacterEncoding("gb2312"); response.setCo... 阅读全文

posted @ 2013-04-23 21:59 kosam 阅读(222) 评论(0) 推荐(0)

Illegal mix of collations (latin5_turkish_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operati
摘要:再做一个小项目debug的时候,发现这个bug:java.sql.SQLException: Illegal mix of collations (latin5_turkish_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operation ... 阅读全文

posted @ 2013-04-21 23:44 kosam 阅读(277) 评论(0) 推荐(0)

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
摘要:今天在调试的过程中,发现了一个bug:java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String org.apache.jsp.complaintSearchList_jsp._jspServi... 阅读全文

posted @ 2013-04-16 06:27 kosam 阅读(1559) 评论(0) 推荐(1)

如何使用Log4j?
摘要:1、 Log4j是什么? Log4j可以帮助调试(有时候debug是发挥不了作 用的)和分析,要下载和了解更详细的内容,还是访问其官方网站吧:http://jakarta.apache.org/log4j。2、Log4j的概念Log4j中有三个主要的组件,它们分别是Logger、Appender和L... 阅读全文

posted @ 2013-04-13 23:43 kosam 阅读(140) 评论(0) 推荐(0)

jsp中验证码的实现
摘要:[java]view plaincopypackagecom.guang.servlet;importjava.awt.Color;importjava.awt.Font;importjava.awt.Graphics2D;importjava.awt.image.BufferedImage;imp... 阅读全文

posted @ 2013-04-10 14:25 kosam 阅读(330) 评论(0) 推荐(0)

JSP页面显示乱码解决方案
摘要:一、JSP页面显示乱码二、表单提交中文时出现乱码三、数据库连接大家在JSP的开发过程中,经常出现中文乱码的问题,可能一至困扰着您,我现在把我在JSP开发中遇到的中文乱码的问题及解决办法写出来供大家参考。一、JSP页面显示乱码下面的显示页面(display.jsp)就出现乱码: JSP的中文处理 ... 阅读全文

posted @ 2013-03-20 03:43 kosam 阅读(699) 评论(1) 推荐(0)