- 浏览: 309159 次
- 性别:
- 来自: 广州
最新评论
-
chaoyi:
bitray 写道这不是做了set的操作嘛?没发现是自动映射啊 ...
JavaBean与表单 -
huwen_hua:
Servlet简介 -
bitray:
这不是做了set的操作嘛?没发现是自动映射啊?
JavaBean与表单 -
chaoyi:
wellkingsen 写道共享源码?凑合看看,找不到源码了。 ...
Jsp小项目总结 -
wellkingsen:
共享源码?
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.xwork2.ActionSupport;
@SuppressWarnings("serial")
public class DuestionsAction extends Ac ...
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/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation ...
SQL 语句
create user OnlineDB identified by 123456;
grant connect,resource to OnlineDB;
-- Oracle 删除用户
--drop user OnlineDB cascade;
--问题表
create table questions (
id number(10) primary key not null,--问题 id
title varchar2(100) not null,-- 问题名
detailDesc varchar2(300) ...
StandardsAction 控制类
package cn.action;
import java.util.List;
import cn.biz.StandardsBiz;
import cn.entity.Standards;
import com.opensymphony.xwork2.ActionSupport;
@SuppressWarnings("serial")
public class StandardsAction extends ActionSupport {
private StandardsBiz standardsBiz;
...
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/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation ...
SQL 语句
create user standDB identified by 123456;
grant connect,resource to standDB;
-- Oracle 删除用户
--drop user standDB cascade;
--标准信息表
create table standards (
std_id number(10) primary key not null,--标准 id
std_num varchar2(50) not null,--标准号
zhname varchar2(40) no ...
纯CSS设置Checkbox复选框控件的样式
- 博客分类:
- Html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Checkbox样式</title>
<style type="text/css" media="screen">
body{
color:#444;
font-size:1.6em;
background:#ccc;
}
.container{
width:90%;
margin:20px 3%; ...
SSH+JXL 下载 Excel 文档
- 博客分类:
- Spring
Emp 实体类和映射文件
package cn.entity;
import java.util.Date;
@SuppressWarnings("serial")
public class Emp implements java.io.Serializable {
private Integer empno;
private String ename;
private String job;
private Integer mgr;
private Date hiredate;
private Double sal;
private ...
ExcelService 业务类
package cn.service;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import jxl.Workbook;
import jxl.write.Label;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
public class ExcelService {
/* ...
JXL 下载 Excel 文档
- 博客分类:
- Spring
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 文件
* */
public class WriteExecl {
public static void main(String[] args) {
try {
//1.打开文件 ...
图示:
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.CategoryAxis;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.labels.StandardCategoryIt ...
图示:
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:schemaLocation="http://java.sun.com/xml/ns/javaee ...
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.Tag;
import com.opensymphony.xwork2.ActionSupport;
@SuppressWarnings("serial")
public c ...
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:schemaLocation="http://java.sun.com/xml/ns/javaee
http ...
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 VARCHAR2(200 CHAR) not null,
F_TAGS VARCHAR2(200 CHAR),
F_DESC VARCHAR2(500 CHAR)
);
alter t ...