- 浏览: 118924 次
- 性别:
- 来自: 广州
最新评论
-
niezhihong:
Java代码 Contact selContact = (C ...
liferay 日历使用 -
释皇天:
<script language="javas ...
js获得当前日期和昨天日期 -
释皇天:
火狐下可以不???貌似不可以。
js获得当前日期和昨天日期 -
plj123:
今天遇到这个问题了,用outerHTML会报未知运行时错误。 ...
js删除tr -
javaray:
遨豪(大连)科技有限公司自2007年与Liferay,Inc合 ...
liferay 中的经常使用的
文章列表
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
public String getEditTruckXML(String userID, Long fleetID, Long obtisId) {
List<FleetTruck> fleetTruckList = new ArrayList<FleetTruck>();
fleetTruckList = fleetTruckDao.findFleetTruckByFleeID( ...
- 2009-10-17 11:46
- 浏览 1294
- 评论(0)
使用json-lib
下载
到http://json-lib.sourceforge.net下载json-lib-1.1-jdk15.jar,运行json还需要的包有:commons-lang.jar、commons-logging.jar,commons-beanutils.jar、xom-1.0-2005-01-05.jar、ezmorph-1.0.1.jar,可在http://www.docjar.com搜索下载。
l 转化数组和集合
boolean[] boolArray = new boolean[]{true,false,tr ...
- 2009-10-17 10:42
- 浏览 1110
- 评论(0)
<html>
<body>
<script type="text/javascript">
<!--
function showText(l_Div,r_Div){
var commpanyDiv = document.getElementById('commpanyDiv');
var personalDiv = document.getElementById('personalDiv');
var d_inputElent = new Array();
var d_selectElent = new Array();
v ...
- 2009-10-14 11:29
- 浏览 4891
- 评论(1)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset ...
- 2009-09-30 09:38
- 浏览 934
- 评论(1)
chain
用来处理Action链
com.opensymphony.xwork2.ActionChainResult
dispatcher
用来转向页面,通常处理JSP
org.apache.struts2.dispatcher.ServletDispatcherResult
freemaker
处理FreeMarker模板
org.apache.struts2.views.freemarker.FreemarkerResult
httpheader
控制特殊HTTP行为的结果类型
org.apache.st ...
- 2009-09-29 11:55
- 浏览 1040
- 评论(0)
package com.sterning;
import java.io.File;
import javax.servlet.ServletContext;
import org.apache.commons.io.FileUtils;
import org.apache.struts2.util.ServletContextAware;
import com.opensymphony.xwork2.ActionSupport;
public class StrutsFileUpload extends ActionSupport implements
...
- 2009-09-29 11:47
- 浏览 1840
- 评论(0)
public static void main(String[] arg){
try{
File _file = new File("d:\\img\\mimi.jpg"); //读入文件
Image src = javax.imageio.ImageIO.read(_file); //构造Image对象
int wideth=src.getWidth(null); //得到源图宽
int height=src.getHeight(null); //得到源图长
Sy ...
- 2009-09-28 16:39
- 浏览 896
- 评论(0)
引用来自http://www.blogjava.net/keweibo/articles/175017.html
<html>
<head>
<script type="text/javascript">
function show()
{
var tab = document.getElementById("test") ;
//表格行数
var rows = tab.rows.length ;
//表格列数
var cells = tab ...
- 2009-09-08 14:23
- 浏览 2162
- 评论(0)
引用以下来自网络摘
<html>
<head>
<title>javascript删除talbe中的一行</title>
<script type="text/javascript">
function Goto(){}
function deleteCurrentRow(obj){
var tr=obj.parentNode.parentNode;
alert(tr);
var tbody=tr.parentNode;
alert(tr);
tbody.removeChild(t ...
- 2009-09-08 12:43
- 浏览 5760
- 评论(1)
引用摘自网络
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class GetNum {
public static void main(String[] args) {
int a[]={2007,2008,2006,2004,1984,2007,2006,2006};
List<Num> list=new ArrayList<Num>();
for(int i=0;i<a.length ...
- 2009-09-03 09:57
- 浏览 877
- 评论(0)
public class TestString
{
public TestString(){}
private static void getMaxStr(String str){
String a="";
String maxstr = "";
int maxlength = 0;
int start=0;
for(int i =0;i<str.length();i++){
//判断当前的字符是否和前面的相同
if(!a.equals(String.va ...
- 2009-09-03 09:56
- 浏览 1356
- 评论(0)
function getTrace_Id(){
//get fleetId and truckId
var numberOfControls=document.form1.length;
var myElement;
var c_fleetId;
var c_truckId;
var fleet_Arr = new Array();
var p_fleetId;
for(var i=0;i<numberOfControls;i++){
myElement=document.form1[i];
if(m ...
- 2009-09-01 18:05
- 浏览 815
- 评论(0)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset ...
- 2009-09-01 17:50
- 浏览 4203
- 评论(1)
function getSysDate(){
var today = new Date();
var day = today.getDate();
var month = today.getMonth() + 1;
var year = today.getYear();
var hours = today.getHours();
var minute = today.getMinutes();
//获取昨天的日期
var zt = new Date(today. ...
- 2009-09-01 15:44
- 浏览 4766
- 评论(2)