`
文章列表
XMLDecoder 使用实例:   URL url;         String rtnStr="";         try {             BufferedInputStream bis = null;             try {                 url = new URL(spec);                 bis = new BufferedInputStream(url.openStream(), size);                 XMLDecoder xmlDecoder = new ...
  struts2+axis2 。项目部署后调用webService出错。 一开始没有认真去看log,因为新搭的环境还以为环境有问题。 后来在网上查了下,说是struts2的一个小BUg,web.xml中的配置 <url-pattern>/* </url-pattern> 会把webService当初一个Action去执行。 修改成 <url-pattern>*.action </url-pattern>后问题就解决了。哎,为了这个问题纠结了一段时间。 网上还有一种说法是因为系统工程的访问目录中包含空格,也试过把空格去掉,只是仍 ...
时间的效果如下:   jsp页面代码:   <html>   <head>       <sd:head parseContent="true"/>       <base href="<%=basePath%>"/>     <title>部门管理</title>     <meta http-equiv="pragma" content="no-cache">     <meta htt ...
还是sqlserver 中的时间函数的使用。   select  DateDiff(year,A.FBIRTHDAY,getdate()) from Employee A。   其中A.FBIRTHDAY为datetime类型。
select * from  DepartmentMaster   有如下列:FID, FNAME, FCODE, FHIGHERDEPARTMENT , FCHARGER, FSTANDARD, FCREATETIME, FUPDATTIME, FCREATER, FSTATUS   将部门以树形的菜单显示的SQL语句为:   WITH Example_Table AS (    --取根节点放入临时表 select *,rn=cast(fid as varchar(max)) from DepartmentMaster where FID in (SELECT Depa ...
今天用到了ajax中的dojo,发现页面 js错误:'dojo'未定义错误。特别要注意一下几个地方。   <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ taglib uri="/struts-tags" prefix="s"%><%@ taglib prefix="sd" uri="/struts-dojo-tags"%&g ...
原文来自: http://www.cnblogs.com/fernando/archive/2008/04/29/1176581.html MS SQL Server中的 CONVERT 日期时间 格式化大全 CONVERT 将某种数据类型的表达式显式转换为另一种数据类型。由于某些需求经常用到取日期格式的不同.现以下可在SQL Server中 将日期格式化. SQL Server 支持使用科威特算法的阿拉伯样式中的数据格式。 在表中,左侧的两列表示将 datetime 或 smalldatetime 转换为字符数据的 sty ...
原文转载自:http://www.diybl.com/course/7_databases/sql/sqlServer/200838/103329.html   一部分:SQL的本月统计和本周统计 本月统计(MySQL) select * from booking where month(booking_time) = month(curdate()) and year(booking_time) = year(curdate()) 本周统计(MySQL) select * from spf_booking where month(booking_time) = mo ...
select * from sysobjects where  type = 'U'--查询用户表 select * from sysobjects where  type = 'v' --查询试图   select * from sysobjects where  type = 's' --查询系统表
--Oracle 生成树形菜单,sql语句 表结构 create table M_AREA (   FID         INTEGER not null,   FPARENTID   INTEGER not null,   FNAME       VARCHAR2(50) not null,   FLAT        NUMBER(20,14),   FLON        NUMBER(20,14),   FMAPBAG     VARCHAR2(20),   ISBASEBLOCK NUMBER(1),   FLATLON     VARCHAR2(20) ...
<s:hidden name="formInfo.pRODUCTOPENID" value="%{#info.productName}"></s:hidden> <table border="0" cellpadding="0" cellspacing="1" bgcolor="#ebebeb"> <tr > <td colspan="2" align="center"& ...
js 提交表单,老是忘记,备忘 document.forms[0].action = url;      document.forms[0].method = "post";      document.forms[0].submit();
public  void InsertContents(MContent content) throws Exception { String Title=content.getTitle() ; String contents=content.getContents(); Connection sqlConn = null; sqlConn = getConnection(); sqlConn.setAutoCommit(false); // * //id, column_code, title, createdate, contenturl, contents ...
date 类型: select to_char(sysdate,'YYYY-MM-DD') from dual where to_char(sysdate,'YYYY')=2010 timestamp 类型: select to_char(SYSTIMESTAMP,'yyyy-mm-dd') timestampType from DUAL; ORALE 时间格式 format : Select to_date( '2011-04-29','yyyy-mm-dd hh24:mi:ss') From dual;
http://zhidao.baidu.com/question/78140981.html 表单提交get请求乱码。 String(request.getParameter("id").getBytes("iso8859-1"),"utf-8") //上面的情况不一定会解决问题,对于偶数个中文可以,但是对于奇数个中文还是会出现部分乱码,解决的方法是: 修改tomcat配置文件server.xml 下面这段文字 <Connector port="8080" protocol="HTTP/1 ...
Global site tag (gtag.js) - Google Analytics