- 浏览: 104157 次
- 性别:
- 来自: 北京
最新评论
-
u011227256:
...
Spring Framework 3.0.5+Spring Security 3.0.5+ mybatis 3.0.5+ Struts 2.2.3整合代码 -
请教我送温暖:
非常感谢,解决了一个大问题
java 下载图片代码 -
rochou:
为什么login.jsp里面的form表单没有submit动作 ...
Spring Framework 3.0.5+Spring Security 3.0.5+ mybatis 3.0.5+ Struts 2.2.3整合代码 -
testspringmail:
http://czpae86.iteye.com/blog/1 ...
extjs 4.0 做的 Excel 小功能 -
junjun16818:
yuncpu 写道openSessionInView这里用的是 ...
Spring Framework 3.0.5+Spring Security 3.0.5+ mybatis 3.0.5+ Struts 2.2.3整合代码
文章列表
//按钮组
var actionSheet = new Ext.ActionSheet({
draggable:true,//允许拖拽
bodyMargin:100//调整距离 还有 bodyPadding
items: [
{
text: 'Delete draft',
ui : 'decline' //按钮类型
},
{
text: 'Save draft'
},
...
var list = new Ext.List({
id: 'myList',
floating: true,//设置此属性后才可以使用 height width
width: 250,
height: 200,
fullscreed:true,//全屏显示
dock: 'left', //显示的位置
indexbar:true,//在list里 显示类似快速查找
modal:true,//list变为模态框
itemTpl: ' ...
var panel = Ext.getCmp('content');
panel.items.each(function(item){
panel.remove(item)
});
panel.insert(5, carousel)
panel.doLayout();
package webcon;
import java.io.BufferedInputStream;
public class MakeImage {
// 生成图片函数
public void makeImg(String imgUrl,String fileURL) {
try {
// 创建流
BufferedInputStream in = new BufferedInputStream(new URL(imgUrl)
.openStream());
// 生成图片名
int index = imgUrl ...
package webcon;
import java.io.BufferedReader;
public class WebCon {
// 获取网页源代码
public String getWebCon(String pageURL,String encoding) {
//
StringBuffer sb = new StringBuffer();
try {
URL url = new URL(pageURL);
BufferedReader in = new BufferedReader(new InputStreamR ...
<?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
...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name=& ...
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
x ...
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
var s;
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1]
: (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1]
: (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1]
: (s = ua.match(/opera.([\d.]+ ...
document.getElementById('news').scrollHeight; //获取带滚动条div的总长度
document.getElementById('news').scrollTop; // 获取带滚动的当前位置
position:absolute; //让div层变成绝对定位
overflow:scroll; //为div增加滚动条
overflow:hidden; //隐藏滚动条
background: url(lan2.jpg) repeat-y; //一张图片做背景 以Y轴铺平
cursor:hand; //鼠标变成小手