- 浏览: 32394 次
- 性别:
- 来自: 沈阳
最新评论
文章列表
jsp
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags ...
jsp访问上级窗口元素
- 博客分类:
- 开发实例
opener.document.getElementById("app"+workreportid).innerHTML="";
var ids = opener.document.getElementsByName("strIds");
for(i=0;i<ids.length;i++){
if(workreportid == ids[i].value){
ids[i].disabled="disabled";
}
}
Win7先安装oracle 11g时,安装检测到系统的主 IP 地址是 DHCP 分配的地址.
检测失败情况:
正在检查网络配置需求...
检查完成.此次检查的总体结果为: 失败 <<<<
问题: 安装检测到系统的主 IP 地址是 DHCP 分配的地址.
建议案: Oracle 支持在具有 DHCP 分配的 IP 地址的系统上进行安装.但在安装之前, 必须将
Microsoft LoopBack Adapter 配置为系统的主网络适配器.有关在配置有 DHCP 的系统上安装软件的
详细信息, 请参阅 Installation Guide.
解决办法:
1. ...
package com.action.frame;
import java.awt.Container;
import java.awt.Font;
import java.awt.Label;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import jav ...
页面关闭IE触发事件方法
- 博客分类:
- 开发实例
function window.onbeforeunload(){
//用户点击浏览器右上角关闭按钮或是按alt+F4关闭
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey){
//删除用户
location.href="account_logout.action";
}else if(event.clientY > document.body.clientHeigh ...
<%@ page language="java" contentType="text/html;charset=gbk"
pageEncoding="gbk"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + req ...
oracle 日期列表
- 博客分类:
- 开发实例
获取某个时间段之间的月份列表(示例返回2009-03到2010-03之间的月份列表)
SELECT TO_CHAR(ADD_MONTHS(TO_DATE('2009-03','YYYY-MM'),ROWNUM-1
),'YYYY-MM') DAY_ID
FROM DUAL
CONNECT BY ROWNUM<=months_between
(to_date('2010-03', 'yyyy-mm'),to_date('2009-03', 'yyyy-mm'))+1
获取某个时间段的日期列表(示例返回2009-04-01到2009-05-23之间的日期列表)
SELE ...
//提交
function doSubmit(){
$(function () {
$("#btn").attr("disabled", true); //用attr来设置、获取jQuery没有封装的属性;
isinerval = setInterval(CountDown, 1000);
});
}
function CountDown() { //
if (times < 0) {
...
oracle11G 最新驱动包 解决与Spring冲突问题
异常描述
javax.management.MalformedObjectNameException: Invalid character '*' in value part of property.
Calendar cal = Calendar.getInstance();
try {
cal.setTime(new SimpleDateFormat("yyyy-MM-dd").parse(source));
} catch (ParseException e) {
e.printStackTrace();
}
cal.set(cal.get(Calendar.YEAR),cal.get(Calendar.MONTH), cal.get(Calendar.DATE) + step);
//第2天
return new SimpleDateFormat( ...
String propertiesPath = getClass().getClassLoader().getResource("").getFile();
propertiesPath = propertiesPath.substring(1, propertiesPath.length());
//windows下
InputStream in = new FileInputStream(new File(propertiesPath + "/resource.properties"));
//linux下
//InputStream in = new ...
final SendMail sendmail = new SendMail();
sendmail.setHost("mail.bjaction.com");
sendmail.setUsername("XXX@bjaction.com");
sendmail.setPassword("******");
sendmail.setFrom("name");//发送者
sendmail.setTo("接收者邮箱");//接收者
sendmail.setSubject("标题" ...
String[] dates = new String[7];
Calendar cal = Calendar.getInstance();
cal.set(Calendar.YEAR, Integer.parseInt(workhoursImsVO.getFYear()));
cal.set(Calendar.WEEK_OF_YEAR, Integer.parseInt(workhoursImsVO.getFWeeks()));
Calendar cal1 = (Calendar)cal.clone();
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK ...
var temp_field1 = $("#temp_field1").val();
var temp_field2 = $("#temp_field2").val();
var d1 = new Date(temp_field1.replace(/-/g,"/"));
var d2 = new Date(temp_field2.replace(/-/g,"/"));
var times = d2.getTime()-d1.getTime();
var days = times/(24*60*60*1 ...
//dtree.js 208行(chks[i].checked = aa.checked;)去掉只显示选中节点。不去掉选中当前节点及所有子节点
function checkBox(aa){
var chks = document.getElementsByName("ids");
for(i=0;i<chks.length;i++){
var subId = chks[i].id;
if(subId.indexOf(aa.id)>-1 && subId.substring(aa.id.length,aa.id.length+1) == ...