`
yjgyjg4
  • 浏览: 118924 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
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( ...
使用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 ...
<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 ...

js图片

附件中的js图片显示
<!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 ...
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 ...
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 ...

读写图片

    博客分类:
  • java
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 ...
引用来自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 ...
引用以下来自网络摘 <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 ...
引用摘自网络 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 ...
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 ...
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 ...
<!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 ...
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. ...
Global site tag (gtag.js) - Google Analytics