- 浏览: 468700 次
- 性别:
- 来自: 南京
最新评论
-
fkbld:
楼主给个密码,谢谢了,baild_zr@126.com
ExtJs direct 推送 DEMO -
文思涌动:
你的方法太好用了,感激不尽。
MyEclipse 安装ADT -
zys08:
...
jquery uploadify -
攻城使:
我现在也在学习使用Uploadfiy,摸索中
jquery uploadify -
gksrxn:
liuyulovely 写道怎么解压还要密码,楼主解压的密码是 ...
ExtJs direct 推送 DEMO
文章列表
学习最常用的 test exec match search replace split 6个方法
1) test 检查指定的字符串是否存在
var data = "123123";
var reCat = /123/gi;
alert(reCat.test(data)); //true
//检查字符是否存在 g 继续往下走 i 不区分大小写
2) exec 返回查询值
var data = "123123,213,12312,312,3,Cat, ...
iReport小絮
有iReport工具包
JSP
<form name="myform" month="post" action="printfb73.jsp">
查询界面 设计
开始日期:**
结束日期:**
提交按钮
printfb73.jsp
<%
//获取参数
Map parameters=new HashMap();
String startmonth=request.getParameter("startMonth");
String endmon ...
iframe 页面嵌套
- 博客分类:
- JAVA 随笔
<iframe name="info" src="" scrolling="auto" frameborder="0" width="90%" height="450"
id="frameid"></iframe>
function toLook(id)
{
//获取当前路径
a=self.location.toString();
var b="";
for(i=0;i<a.split("/").length-2 ;i++)
{
b=b+a.split("/")[i].toString()+"/";
}
var pt = b+'manager/'+'pop2.jsp';
window.info.location = pt ...
public List<MeetMenu> getMeetMenuByUserId(UserLogin u) throws DAOException {
try{
final String sql="select me.menu_id,me.menu_name,me.menu_text,me.link_url,me.sortid,me.isvalid,me.remark,me.parentname from meet_menu me,rolemenu rm,userrole ur
where me.menu_id=rm.menuid and u ...
public void updateEvent(EventVO eventVO) throws BOException {
DefaultTransactionDefinition def=new DefaultTransactionDefinition();
def.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
TransactionStatus status=this.transactionManager.getTransaction(def);
try {
// ...
/**
* delete roleMenu by roleId
*/
public int deleteRoleMenu(final long roleId) throws DAOException{
int deleteState = 1;
List<RoleMenu> li= this.getMyHibernateTemplate().executeFind(new HibernateCallback()
{
public Object doInHibernate(Session session) throws HibernateEx ...
hibernante 支持 保存对象后 返回该保存的ID号(省去在查询一次啦)
业务层
public void addEvent(EventVO eventVO) throws BOException
{
DefaultTransactionDefinition def = new DefaultTransactionDefinition();
def.setPropagationBehavior(TransactionDefinition.PROPAGA ...
============================================================================================
单表字段
============================================================================================
public List<ZxfwSort> getServerName(final long userId) throws DAOException
{
System.out.prin ...
Encoding filter Demo
java
package com.suypower.chengyu.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public class Encodin ...
package com.suypower.NJESIS.systemManage;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.ServletException;
import ja ...
<script type="text/javascript">
function delImageName(albumID_imageName)
{
var albumID,imageName;
var ai = albumID_imageName.split(":");
for(var i=0;i<ai.length;i++)
{
albumID = ai[0];
imageName = ai[i];
}
// alert('删除照片 ...
package com.suypower.chengyu.xml;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.InputStreamReader;
public class ReadTxt {
/**@author chengYu
* @param args
* @read Txt(textArea)
*/
public static vo ...
package com.suypower.demo;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.text.DecimalFormat;
/**
* @au ...
<html>
<head>
<style type="text/css">
.x-fieldset{border:11px solid #B5B8C8;padding:10px;margin-bottom:10px;display:block;}
</style>
</head>
<body>
<form name="frm">
<fieldSet style="x-fieldset">
...