自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

chaoyv

阅谁问君诵,水落清香浮。

  • 博客(1158)
  • 收藏
  • 关注

原创 SSH action+struts.xml+jsp

DuestionsAction 控制类package cn.action;import java.util.Date;import java.util.List;import cn.biz.DuestionsBiz;import cn.entity.Answers;import cn.entity.Duestions;import com.opensymphony....

2015-01-13 03:46:42 321

原创 SSH action+struts.xml+jsp

phony.xwork2.ActionSupport;@SuppressWarnings("serial")public class DuestionsAction extends ActionSupport { private DuestionsBiz duestionsBiz; private List<Duestions> duestions; private List<Answers> answers;

2015-01-13 03:46:42 315

原创 SSH web.xml+applicationContext.xml

web.xml 配置<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com

2015-01-13 03:40:20 141

原创 SSH web.xml+applicationContext.xml

com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <display-name>OnlineOA</display-name&g

2015-01-13 03:40:20 255

原创 SSH sql+entity+dao+biz+test

SQL 语句create user OnlineDB identified by 123456;grant connect,resource to OnlineDB;-- Oracle 删除用户--drop user OnlineDB cascade;--问题表create table questions ( id number(10) prima...

2015-01-13 03:38:25 166

原创 SSH sql+entity+dao+biz+test

d number(10) primary key not null,--问题 id title varchar2(100) not null,-- 问题名 detailDesc varchar2(300) null,-- 问题描述 ansewerCount number(10) not null,--回答次数 lastModidfied date null--最后修改时间);--应答表create table answers (

2015-01-13 03:38:25 114

原创 SSH action+struts.xml+jsp

StandardsAction 控制类package cn.action;import java.util.List;import cn.biz.StandardsBiz;import cn.entity.Standards;import com.opensymphony.xwork2.ActionSupport;@SuppressWarnings("serial")...

2015-01-12 01:26:29 124

原创 SSH action+struts.xml+jsp

ial")public class StandardsAction extends ActionSupport { private StandardsBiz standardsBiz; private List<Standards> standards; private Standards standard; private int pageIndex; private int pagecount; private Integer stdId

2015-01-12 01:26:29 108

原创 SSH web.xml+applicationContext.xml

web.xml 配置<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com

2015-01-12 01:21:34 101

原创 SSH web.xml+applicationContext.xml

com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <display-name>StuSystem</display-name&

2015-01-12 01:21:34 95

原创 SSH sql+entity+dao+biz+test

SQL 语句create user standDB identified by 123456;grant connect,resource to standDB;-- Oracle 删除用户--drop user standDB cascade;--标准信息表create table standards ( std_id number(10) pr...

2015-01-12 01:19:41 153

原创 SSH sql+entity+dao+biz+test

std_id number(10) primary key not null,--标准 id std_num varchar2(50) not null,--标准号 zhname varchar2(40) not null,--中文名称 std_version varchar2(10) not null,--版本 keys varchar2(50) not null,--关键字/词 release_date date nul

2015-01-12 01:19:41 146

原创 纯CSS设置Checkbox复选框控件的样式

<!DOCTYPE html><html><head><meta charset="utf-8"><title>Checkbox样式</title><style type="text/css" media="screen">bod

2015-01-10 14:33:54 284

原创 纯CSS设置Checkbox复选框控件的样式

ze:1.6em; background:#ccc;}.container{ width:90%; margin:20px 3%; padding:25px; min-height:400px; height:auto; background: #FFF;}section{ float:left; width:30%; margin:20px 20px;}hr{ clear:both;}/** * Start by hid

2015-01-10 14:33:54 134

原创 SSH+JXL 下载 Excel 文档

Emp 实体类和映射文件package cn.entity;import java.util.Date;@SuppressWarnings("serial")public class Emp implements java.io.Serializable { private Integer empno; private String ename; private S...

2015-01-09 04:18:43 97

原创 SSH+JXL 下载 Excel 文档

ame; private String job; private Integer mgr; private Date hiredate; private Double sal; private Double comm; private Integer deptno; @Override public String toString() { return "Emp [empno=" + empno + ", ename="

2015-01-09 04:18:43 125

原创 Struts2+JXL 下载 Excel 文档

ExcelService 业务类package cn.service;import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.InputStream;import jxl.Workbook;import jxl.write.Label;import...

2015-01-09 01:28:16 188

原创 Struts2+JXL 下载 Excel 文档

import jxl.write.WritableSheet;import jxl.write.WritableWorkbook;public class ExcelService { /** * 调用 JXL 生成 Excel 文件 * */ public InputStream generateExcel(){ Label label = null; WritableWorkbook workbook = null; //字节数组的输出流 ByteAr

2015-01-09 01:28:16 113

原创 JXL 下载 Excel 文档

WriteExecl 写入 Excel 文档package cn.jxl;import java.io.File;import jxl.Workbook;import jxl.write.Label;import jxl.write.WritableSheet;import jxl.write.WritableWorkbook;/** * 写入一个 Execl ...

2015-01-09 01:20:02 141

原创 JXL 下载 Excel 文档

入一个 Execl 文件 * */public class WriteExecl { public static void main(String[] args) { try { //1.打开文件 WritableWorkbook book = Workbook.createWorkbook(new File("E:/chaoyi/test.xls")); //2.生成名为“第一页”的工作表,参数 0 表示这是第一页 WritableSh

2015-01-09 01:20:02 99

原创 Spring+Struts+JFreeChart 自动生成统计图

图示: LineChartAction 控制层package cn.action;import java.awt.Color;import java.awt.Font;import org.jfree.chart.ChartFactory;import org.jfree.chart.JFreeChart;import org.jfree.chart.axis.Ca...

2015-01-08 00:35:45 104

原创 Spring+Struts+JFreeChart 自动生成统计图

chart.axis.CategoryAxis;import org.jfree.chart.axis.ValueAxis;import org.jfree.chart.labels.StandardCategoryItemLabelGenerator;import org.jfree.chart.plot.CategoryPlot;import org.jfree.chart.plot.PlotOrientation;import org.jfree.chart.renderer.ca

2015-01-08 00:35:45 126

原创 Spring+JFreeChart 自动生成统计图

图示: web.xml 配置<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs

2015-01-07 22:27:42 204

原创 Spring+JFreeChart 自动生成统计图

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>Spring12JFreeChart</display-name> <servlet> <servlet-name

2015-01-07 22:27:42 217

原创 SSH action+struts.xml+jsp

FavAction 控制类package cn.action;import java.util.List;import org.apache.struts2.ServletActionContext;import cn.biz.FavBiz;import cn.biz.TagBiz;import cn.entity.Favorite;import cn.entity...

2015-01-06 03:28:22 155

原创 SSH action+struts.xml+jsp

entity.Tag;import com.opensymphony.xwork2.ActionSupport;@SuppressWarnings("serial")public class FavAction extends ActionSupport { private FavBiz favBiz;//收藏 private TagBiz tagBiz;//标记 private Favorite fav; private Tag tag; private

2015-01-06 03:28:22 100

原创 SSH web.xml+applicationContext.xml

web.xml 配置<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schem

2015-01-06 03:22:29 91

原创 SSH web.xml+applicationContext.xml

ocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>Spring10Favorite</display-name> <listener> <description>Spring的配

2015-01-06 03:22:29 65

原创 SSH sql+entity+dao+biz

Sql 语句-- 以system登录create user fav identified by bdqn;grant dba to fav;-- 以fav登录create table FAVORITE( F_ID NUMBER(19) not null, F_LABEL VARCHAR2(200 CHAR) not null, F_URL V...

2015-01-06 03:17:36 335

原创 SSH sql+entity+dao+biz

ll, F_URL VARCHAR2(200 CHAR) not null, F_TAGS VARCHAR2(200 CHAR), F_DESC VARCHAR2(500 CHAR));alter table FAVORITE add primary key (F_ID);create table TAG( T_ID NUMBER(19) not null, T_NAME VARCHAR2(100 CHAR) not null, T_

2015-01-06 03:17:36 248

原创 将 Jar 包部署到 Web 端

1.在 Properties 窗口查找 de,选中“Deployment Assembly”,点击“Add...”按钮 2.选中 “Java Build Path Entries”,点击 “Next”按钮 3.选择要添加的 Jar 包,点击“Finish”按钮,这时已经将 Jar 包添加到 Web 端    ...

2015-01-06 03:09:17 436

原创 将 Jar 包部署到 Web 端

2015-01-06 03:09:17 242

原创 Spring+MyBatis scott用户根据 no 查找数据

Emp 实体类及Mapper.xmlpackage cn.entity;import java.io.Serializable;import java.util.Date;/** * 员工类 */@SuppressWarnings("serial")public class Emp implements Serializable { private Inte...

2015-01-05 03:31:11 102

原创 Spring+MyBatis scott用户根据 no 查找数据

private Integer empno; private String ename; private String job; private String mgr; private Date hiredate; private Double salary; //工资属性名改了 private Double comm; private Integer deptno; @Override public String toString() { return &qu

2015-01-05 03:31:11 109

原创 Spring+Jdbc scott用户的调用存储过程

本章使用的是 scott 用户创建存储过程create or replace procedure get_dept_name( in_sn in number, out_dept_name out varchar2)isbegin select d.dname into out_dept_name from...

2015-01-05 01:21:10 153

原创 Spring+Jdbc scott用户的调用存储过程

nto out_dept_name from emp e left join dept d on d.deptno = e.deptno where e.empno = in_sn;end get_dept_name; 调用存储过程declare dname varchar2(30);begin get_dept_name(7698,dname); dbms_output.put_line(dname);end; 测

2015-01-05 01:21:10 93

原创 Spring+Jdbc scott用户的增删改查

本章使用的是 scott 用户Emp 实体类package cn.entity;import java.util.Date;public class Emp { private Integer empno; private String ename; private String job; private Integer mgr; private Date ...

2015-01-01 21:28:12 142

原创 Spring+Jdbc scott用户的增删改查

r mgr; private Date hiredate; private Double sal; private Double comm; private Integer deptno; @Override public String toString() { return "Emp [empno=" + empno + ", ename=" + ename + ", job=" + job + &quot

2015-01-01 21:28:12 108

原创 Oracle scott 用户

scott是一个系统已经新建好的普通用户用户名scott,密码默认tiger,默认状态是被锁定,DBA用户执行alter user scott account unlock;可以解锁登陆 对于熟悉Oracle或者接触过Oracle的人,scott这个用户大家一定相当的熟悉。从Oracle第一个商业化版本至今,oracle的默认数据库里都少不了这个名字为scott,密码为tiger的用户,...

2015-01-01 21:19:45 145

原创 Oracle scott 用户

le或者接触过Oracle的人,scott这个用户大家一定相当的熟悉。从Oracle第一个商业化版本至今,oracle的默认数据库里都少不了这个名字为scott,密码为tiger的用户,这个scott究竟有何来历,怎么在我们的oracle的版本里一直都不能少呢。这个就要追朔到Oracle的创业阶段了, 1977年6月,埃里森,Bob Miner和Ed Oates在硅谷共同创办了一家名为软件开发实验室(Software Development Laboratories,SDL)的计算机公司,这个只有三个人的公

2015-01-01 21:19:45 130

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除