`
安之若素
  • 浏览: 143196 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
        转自: http://www.cnblogs.com/crazy-fox/archive/2012/02/09/2343722.html     我们都知道Maven本质上是一个插件框架,它的核心并不执行任何具体的构建任务,所有这些任务都交给插件来完成,例如编译源代码是由maven- compiler-plu ...
  新添加个发文类型 insert into mis.zyb_sf_type values('121','榆财法字','榆财法字',2,'0','1',21,NULL,'0','发文模板.doc','') 创建文章时出错了, 异常信息:   文件保存失败java.io.FileNotFoundException: E:\tomcat\jinzhongshi\jinzs_yuci\webapps\myDoJZS\word\template_fw\发文模版.doc (系统找不到指定的文件。) at java.io.FileInputStream.open(Native Method) a ...
各层的内容通过异步得到xml数据,并对每个模块用一个xsl文件解析,将解析结果放入指定层这里只显示主要的代码     1> jsp页面上定义层的id, 并在form中指定需要异步加载数据的js方法 <form action="javascript:showAllXML();"> //调用异步加载数据的js方法 <div id="swgl"> //页面上显示数据的层 </form>     2> js文件里的方法 //各个层的全局变量: var lgwgl_swgl = document. ...
WritableFont headFont = new WritableFont(WritableFont.TIMES, 14,WritableFont.BOLD); //设置标题,字号14,加粗 <P>WritableFont countents = new WritableFont(WritableFont.TIMES,12); // 设置单元格内容,字号12 WritableCellFormat cell = new WritableCellFormat(contentFont); cell.setAlignment(jxl.format.Ali ...
<script type="text/javascript"> function test(){ alert(parseInt("01")-parseInt("03")); alert(parseInt("02")-parseInt("03")); alert(parseInt("03")-parseInt("03")); alert(parseInt("04")-parse ...
原因microsoft提供的数据库驱动存在bug。需要换一种驱动连接,使用jtds(下载地址:http://sourceforge.net/projects/jtds/files/)下载jtds1.2版,解压得到jtds-1.2.jar,引用到eclipse中项目目录下(去除原驱动引用),更改hibernate配置文件: 原驱动连接配置:  <property name="connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>        & ...
    首先我们从最基础的说起,用iterator标签遍历一个List。 如果Action中有一个这样的不为null的属性: private List<T> list; 那么在JSP中,就可以这样来遍历list: <s:iteratorvalue="list">      <s:propertyvalue="propertyNameOfObjectInList"></s:property> </s:iterator> 其中的propertyNameOfObjectInList ...
解决这个问题---Unhandled event loop exceptionNo more handles [Could not detect registered XULRunner to use]   eclipse->window->preferences->general->editors->file associations 选中JSP,换一个编辑器即可。不行的话就先将默认的jsp designer 移除,再选择。   转载:http://mandwuyee.iteye.com/blog/694619  
  添加删除能用,修改报错。 exception: org.springframework.orm.hibernate3.HibernateSystemException: a different object with the same identifier value was already associated with the session: [com.accp.oa.entity.Userinfo#qqqq]; nested exception is org.hibernate.NonUniqueObjectException: a different object with ...
  异常信息主要部分:   Unable to instantiate Action, manualsignAction,  defined for 'addmanualsignAction' in namespace '/'Error creating bean with name 'manualsignAction' defined in ServletContext resource [/WEB-INF/applicationContext-department.xml]: Initialization of bean failed; nested exception is org. ...
现象 严重: Servlet.service() for servlet default threw exceptionjava.lang.IllegalStateException    at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407)    at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:725)    at org.apache.struts2.dispatcher.Dis ...
1.简介eXtremeTable是目前流行的优秀分页组件之一,和 Displsytag,ValueList相比,即美观又使用。在介绍eXtremeTable之前先了解一下eXtremeComponents,它是一系列的开源的jsp自定义标签库,eXtremeTable是它中的一个功能强大而又容易配置、扩展、自定义的组件。它是以表格的形式来显示数据,具有分页组件应具有的大部分功能,比如:设定每页显示的记录数,排序等,除此之外它还具有过滤,导出,利用数据库的limit功能局部取数据,自定义列样式等等。eXtremeTable它不依赖任何框架和容器。2.安装和测试2.1 下载eXtremeTable的 ...
        <!-- 显示第5个字符到第10个字符 --> <s:if test="%{null!=desc&&desc.length()>5}"> <s:property value="%{desc.substring(5, 11)}" />…… </s:if> <s:else> ...
  今天发现的一个关于ajax url传值时,获取下拉列表选项的value时容易碰到的问题:       /**异步提交**/ var xmlHttp; function selectListResult(){ var f=document.selectForm; var branch=f.selectbranch.value; var depart=f.selectdepart.value; var name=f.UserName.value; var time=f.Time.value; var url=${basePath}"findS ...
本文是jquery<--json-->spring(3.0)系列的第三篇。 原文地址:http://blog.csdn.net/hy840429/article/details/5626878 jquery与yui相比,感觉写法很简洁,但也有个问题是配套的jquery ui中的页面控件 不是很全,很多要借助plugin,而这些plugin良莠不齐,选用时要自己好好挑一挑。 列表是一个常用的页面控件,我选了半天发现DataTables这款用的人比较多,就试了 试服务器端翻页功能,现总结如下。 DataTables的主页是http://www.datatables.net/  ...
Global site tag (gtag.js) - Google Analytics