锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
<head>
<title>蹇熷畾浣?lt;/title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<style type="text/css">
body{font-size:12px}
td{font-size:12px}
</style>
<SCRIPT langague="javascript">
var row_num=1;
function winclose(){
window.close();
}
function pos(){
var parentWin=window.dialogArguments;
//parentWin.document.all("input1").value="dfasfdsf";
var ptable=parentWin.document.all("tabA");
var tr=ptable.rows;
for(var row_num=1;row_num<tr.length;row_num++){
if((tr[row_num].cells[0].children[1].innerText==document.all("id").value)&&(tr[row_num].cells[5].children[0].innerText==document.all("procdure").value)){
alert("鎵懼埌浜?");
parentWin.tronclick(tr[row_num]);
tr[row_num].scrollIntoView()
}
}
}
</SCRIPT>
</head>
<body topmargin="0" leftmargin="0" style="overflow-x:hidden;overflow-y:hidden">
<table width="380" height="102" border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr>
<td height="24" align="center" bgcolor="#E1F0D2" colspan="6" style="font-size:12px">蹇熷畾浣?lt;/td>
</tr>
<tr>
<td width="71" height="23" bgcolor="#f5f5f5"> 搴忓彿 </td>
<td width="306" bgcolor="#ffffff"> <input type="text" name="id"></td>
</tr>
<tr>
<td height="24" bgcolor="#f5f5f5"> 鍝佸悕</td>
<td bgcolor="#ffffff"><input type="text" name="procdure"></td>
</tr>
<tr>
<td colspan="2" >
<div align="center">
<input type="button" name="Submit" value="瀹?浣? onclick="pos()">
<input type="button" name="Submit" value="鍏?闂? onclick="winclose()">
</div></td>
</tr>
</table>
</body>
</html>
<%@ taglib uri="<%@ taglib uri="<%@ taglib uri="<%@ taglib uri="
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />
<title>鎸夐挳嫻嬭瘯</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="css/main.css" type="text/css" rel="stylesheet">
</head>
<body>
<div>
<table width="87%" border="0" cellpadding="2" cellspacing="1" class="3g" id="Hed">
<tr>
<td width="11%" class="3gleft">鐢ㄦ埛鍚?</td>
<td width="33%" class="3gright"> </td>
<td width="8%" class="3gleft">瀵?nbsp; 鐮侊細</td>
<td width="48%" class="3gright"> </td>
</tr>
<tr>
<td width="11%" class="3gleft"> </td>
<td width="33%" class="3gright"> </td>
<td width="8%" class="3gleft"> </td>
<td width="48%" class="3gright"> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr id="kkrow">
<td> </td>
<a href=" <a href="k1.jsp" target="mains"><td id="OutPage" onclick="setBackimage(this)"><a href="k1.jsp" target="mains">嫻嬭瘯1</td></a></a>
<a href="k2.jsp" target="mains"><td id="OutPage" onclick="setBackimage(this)"><a href="k2.jsp" target="mains">嫻嬭瘯2</td></a></a>
</tr>
</table>
</div>
<iframe src="" frmaeborder="0" name="mains" width="100%" style="height:expression(body.offsetHeight-Hed.offsetHeight-25)"></iframe>
<br>
</body>
</html:html>
<script language="javascript">
var tds=false;
function setBackimage(obj){
if(tds!=false){
tds.id="OutPage";
obj.id="InPage";
}
obj.id="InPage"
tds=obj;
}
</script>
]]>
聽聽 .text{
聽聽聽聽聽 border : 1px solid #c2c2c2;
聽聽 }
聽 tr.trover{
聽聽聽 background-color:#ddf7ff;
聽聽 }
聽 tr.trout{
聽聽聽 background-color:#ffffff;
聽聽 }
聽聽 .td{
聽聽聽聽 color:#555555;font-size:12px;
聽聽 }
聽聽 .fixedHeaderTr { position:relative; top:expression(this.offsetParent.scrollTop);}
</style>
<script language="javascript">
聽聽 var tds=false;
聽聽 var current_tr=false;
聽聽 var str_return="";
聽聽 function tronclick(obj){
聽聽 聽聽 document.all("input1").readOnly=true;
聽聽 聽聽 document.all("input2").readOnly=true;
聽聽 聽聽 document.all("input3").readOnly=true;
聽聽 聽聽 document.all("input4").readOnly=true;
聽聽 聽聽 document.all("input5").readOnly=true;
聽聽 聽聽 document.all("input6").readOnly=true;
聽聽 聽聽
聽聽聽聽聽 obj.cells[0].children[0].checked=true;
聽聽聽聽聽 document.all("input1").value=obj.cells[0].children[1].innerText;
聽聽聽聽聽 document.all("input2").value=obj.cells[1].children[0].innerText;
聽聽聽聽聽 document.all("input3").value=obj.cells[2].children[0].innerText;
聽聽聽聽聽 document.all("input4").value=obj.cells[3].children[0].innerText;
聽聽聽聽聽 document.all("input5").value=obj.cells[4].children[0].innerText;
聽聽聽聽聽 document.all("input6").value=obj.cells[5].children[0].innerText;
聽聽聽聽聽 if(tds!=false){
聽聽聽聽聽 obj.style.backgroundColor="#c0dde2";
聽聽 tds.style.backgroundColor="";
聽聽 }
聽聽 obj.style.backgroundColor="#c0dde2";
聽聽 tds=obj;
聽聽 current_tr=obj;
聽聽 }
聽聽 function add(){
聽聽聽聽聽 document.all("input1").value="";
聽聽聽聽聽 document.all("input1").readOnly=false;
聽聽聽聽聽 document.all("input2").value="";
聽聽聽聽聽 document.all("input2").readOnly=false;
聽聽聽聽聽 document.all("input3").value="";
聽聽聽聽聽 document.all("input3").readOnly=false;
聽聽聽聽聽 document.all("input4").value="";
聽聽聽聽聽 document.all("input4").readOnly=false;
聽聽聽聽聽 document.all("input5").value="";
聽聽聽聽聽 document.all("input5").readOnly=false;
聽聽聽聽聽 document.all("input6").value="";
聽聽聽聽聽 document.all("input6").readOnly=false;
聽聽聽聽聽 document.all("hid1").value="add"
聽聽 }
聽聽 function edit(){
聽聽聽聽聽 document.all("input1").readOnly=true;
聽聽聽聽聽 document.all("input2").readOnly=false;
聽聽聽聽聽 document.all("input3").readOnly=false;
聽聽聽聽聽 document.all("input4").readOnly=false;
聽聽聽聽聽 document.all("input5").readOnly=false;
聽聽聽聽聽 document.all("input6").readOnly=false;
聽聽聽聽聽 document.all("hid1").value="edit";
聽聽 }
聽聽 function save(){
聽聽聽聽聽 action=document.all("hid1").value;
聽聽聽聽聽 alert(action);
聽聽聽聽聽 if(action=="add"){
聽聽聽聽聽聽聽 trd=document.all.tabA.insertRow();
聽聽 聽var newtr=document.all("tabA").rows;
聽聽 聽
聽聽 聽newtr[newtr.length-1].onclick=function(){
聽聽 聽聽聽 var trobj = event.srcElement.parentElement;
聽聽 聽聽聽 if(trobj.tagName != "TR"){
聽聽 聽聽聽聽聽聽 trobj = trobj.parentElement;
聽聽 聽聽聽 }
聽聽聽聽聽聽聽 tronclick(trobj);
聽聽聽聽 };
聽聽 聽newtr[newtr.length-1].onmouseover=function(){
聽聽聽聽聽聽 //trmover(newtr[newtr.length-1]);
聽聽聽聽 var trobj = event.srcElement.parentElement;
聽聽聽聽聽聽聽聽聽聽 if(trobj.tagName != "TR"){//鍙栧緱琛岀殑瀵硅薄
聽聽聽聽聽聽聽聽聽聽聽聽聽 trobj = trobj.parentElement;
聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽 trmover(trobj);
聽聽 聽};
聽聽 聽newtr[newtr.length-1].onmouseout=function(){
聽聽聽聽聽聽 //trmout(newtr[newtr.length-1]);
聽聽聽聽聽聽 var trobj = event.srcElement.parentElement;
聽聽聽聽聽聽聽聽聽 if(trobj.tagName != "TR"){//鍙栧緱琛岀殑瀵硅薄
聽聽聽聽聽聽聽聽聽聽聽聽 trobj = trobj.parentElement;
聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽 trmout(trobj);
聽聽 聽};
聽聽聽聽聽 聽v1=document.all("input1").value;
聽聽聽聽聽 聽v2=document.all("input2").value;
聽聽聽聽聽 聽v3=document.all("input3").value;
聽聽聽聽聽 聽v4=document.all("input4").value;
聽聽聽聽聽 聽v5=document.all("input5").value;
聽聽聽聽聽 聽v6=document.all("input6").value;
聽聽聽聽聽 聽trd.insertCell().innerHTML="<td nowrap class='tabletd' height=21 nowrap onclic='tronclick(this)' onmouseover='trmover(this)' onmouseout='trmout(this)'><input type='radio' name='select' value='"+v1+"'"+"><SPAN>"+v1+"</SPAN></td>";
聽聽聽聽聽 聽trd.insertCell().innerHTML="<td><SPAN>"+v2+"</SPAN></td>";
聽聽聽聽聽 聽trd.insertCell().innerHTML="<td><SPAN>"+v3+"</SPAN></td>";
聽聽聽聽聽 聽trd.insertCell().innerHTML="<td><SPAN>"+v4+"</SPAN></td>";
聽聽聽聽聽 聽trd.insertCell().innerHTML="<td><SPAN>"+v5+"</SPAN></td>";
聽聽聽聽聽 聽trd.insertCell().innerHTML="<td><SPAN>"+v6+"</SPAN></td>";
聽聽聽聽聽聽聽
聽聽聽聽聽聽聽
聽聽聽聽聽 聽document.all("input1").value="";
聽聽聽聽聽 聽document.all("input2").value="";
聽聽聽聽聽 聽document.all("input3").value="";
聽聽聽聽聽 聽document.all("input4").value="";
聽聽聽聽聽 聽document.all("input5").value="";
聽聽聽聽聽 聽document.all("input6").value="";
聽聽聽聽聽 聽document.all("input1").readOnly=false;
聽聽聽聽聽 聽document.all("input2").readOnly=false;
聽聽聽聽聽 聽document.all("input3").readOnly=false;
聽聽聽聽聽 聽document.all("input4").readOnly=false;
聽聽聽聽聽 聽document.all("input5").readOnly=false;
聽聽聽聽聽 聽document.all("input6").readOnly=false;
聽聽聽聽聽 聽DynaTable.addSaveRecord("'"+v1+"'","'"+v2+"'","'"+v3+"'","'"+v4+"'","'"+v5+"'","'"+v6+"'","'"+action+"'",addreturn);
聽聽聽聽聽 }else if(action=="edit"){
聽聽聽聽聽 聽current_tr.cells[1].children[0].innerText=document.all("input2").value;
聽聽聽聽聽 聽current_tr.cells[2].children[0].innerText=document.all("input3").value;
聽聽聽聽聽 聽current_tr.cells[3].children[0].innerText=document.all("input4").value;
聽聽聽聽聽 聽current_tr.cells[4].children[0].innerText=document.all("input5").value;
聽聽聽聽聽 聽current_tr.cells[5].children[0].innerText=document.all("input6").value;
聽聽聽聽聽 聽
聽聽聽聽聽 聽document.all("input2").readOnly=true;
聽聽聽聽聽 聽document.all("input3").readOnly=true;
聽聽聽聽聽 聽document.all("input4").readOnly=true;
聽聽聽聽聽 聽document.all("input5").readOnly=true;
聽聽聽聽聽 聽document.all("input6").readOnly=true;
聽聽聽聽聽 聽
聽聽聽聽聽 聽v1=document.all("input1").value;
聽聽聽聽聽 聽v2=document.all("input2").value;
聽聽聽聽聽 聽v3=document.all("input3").value;
聽聽聽聽聽 聽v4=document.all("input4").value;
聽聽聽聽聽 聽v5=document.all("input5").value;
聽聽聽聽聽 聽v6=document.all("input6").value;
聽聽聽聽聽 聽
聽聽聽聽聽 聽DynaTable.editSaveRecord("'"+v1+"'","'"+v2+"'","'"+v3+"'","'"+v4+"'","'"+v5+"'","'"+v6+"'","'"+action+"'",editreturn);
聽聽聽聽聽 }
聽聽 }
聽聽 //鍥炶皟鍑芥暟
聽聽 function addreturn(data){
聽聽聽聽 alert(data);
聽聽 }
聽聽 function editreturn(data){
聽聽聽聽 alert(data);
聽聽 }
聽聽 function deletereturn(data){
聽聽聽聽 alert(data);
聽聽 }
聽聽 //TR鐨勯紶鏍囨湁鍏沖嚱鏁?br />聽聽 function trmover(obj){
聽聽聽聽 obj.className="trover";
聽聽 }
聽聽 function trmout(obj){
聽聽聽聽 obj.className="trout";
聽聽 }
聽聽
聽聽 function deletea(){
聽聽聽聽聽 if(current_tr==false){
聽聽聽聽聽聽聽聽 alert("璇烽夋嫨瑕佸垹闄ょ殑璁板綍!");
聽聽聽聽聽 }
聽聽聽聽聽 var id=current_tr.cells[0].children[1].innerText;
聽聽聽聽聽 if(id!=null){
聽聽聽聽聽聽聽 DynaTable.deleteRecord("'"+id+"'",deletereturn);
聽聽聽聽聽聽聽 current_tr.removeNode(true);
聽聽聽聽聽聽聽 document.all("input1").value="";
聽聽聽聽聽聽聽 document.all("input2").value="";
聽聽聽聽聽聽聽 document.all("input3").value="";
聽聽聽聽聽聽聽 document.all("input4").value="";
聽聽聽聽聽聽聽 document.all("input5").value="";
聽聽聽聽聽聽聽 document.all("input6").value="";
聽聽聽聽聽 }
聽聽 }
聽聽 function fastpost(){
聽聽聽聽聽聽 window.showModalDialog("fastpos.html",window,"dialogHeight=145Px;dialogWidth=385Px");
聽聽 }
</script>
</head>
<body topmargin="0" leftmargin="0">
聽 <br>
聽 <table width="481" height="19" border="0" align="center" cellpadding="0" cellspacing="0" id="controlbar">
聽聽聽 <tr>
聽聽聽聽 <td>
聽聽聽聽聽 <button onclick="add()">娣誨姞 </button> <button onclick="save()">淇濆瓨</button> <BUTTON onclick="deletea()">鍒犻櫎</BUTTON> <BUTTON onclick="edit();">淇敼</BUTTON> <BUTTON onclick="fastpost();">蹇熷畾浣?lt;/BUTTON>
聽聽聽聽 </td>
聽聽聽 </tr>
聽 </table>
聽 <br>
聽 <div style="position:absolute; left:139px; width=300px; width: expression(tabA.offsetWeight+30);height:98px; overflow:scroll; border:1 solid; background-color:white; scrollbar-face-color:#D4D0C8; scrollbar-shadow-color:white; scrollbar-highlight-color:#F6F5F4; scrollbar-3dlight-color:white; scrollbar-darkshadow-color:#86837E; scrollbar-track-color:#F6F5F4; scrollbar-arrow-color:#86837E; width: 529px;">
聽 <table cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" width="521" align="center" bordercolorlight="0a426b" border="1" id="tabA" name="tabA" style="margin-top:-2px ">
聽 聽聽 <tr height="24px" class="fixedHeaderTr">
聽聽聽聽聽 <td bgColor=#cad0e2 width="95" height="24px">
聽聽聽聽聽 <div style="font-size:12px; color:#26548b;line-height:150%" align="center"><font color="#000000">搴忓彿</font></div>
聽聽聽聽 </td>
聽聽 <td bgColor=#cad0e2 width="74" height="24px">
聽聽聽聽聽 <div style="font-size:12px; color:#26548b;line-height:150%" align="center"><font color="#000000">鏍囧織</font></div>
聽聽聽聽 </td>
聽聽 <td bgColor=#cad0e2 width="90" height="24px">
聽聽聽聽聽 <div style="font-size:12px; color:#26548b;line-height:150%" align="center"><font color="#000000">鎵撳嵃</font></div>
聽聽聽聽 </td>
聽聽 <td bgColor=#cad0e2 width="90" height="24px">
聽聽聽聽聽 <div style="font-size:12px; color:#26548b;line-height:150%" align="center"><font color="#000000">璁″垝鏃ユ湡</font></div>
聽聽聽聽 </td>
聽聽 <td bgColor=#cad0e2 width="79" height="24px">
聽聽聽聽聽 <div style="font-size:12px; color:#26548b;line-height:150%" align="center"><font color="#000000">綾誨埆</font></div>
聽聽聽聽 </td>
聽聽 <td bgColor=#cad0e2 width="79" height="24px">
聽聽聽聽聽 <div style="font-size:12px; color:#26548b;line-height:150%" align="center"><font color="#000000">鍝佸悕</font></div>
聽聽聽聽 </td>
聽聽 </tr>
聽聽 <tr聽 height=21 onclick="tronclick(this)" onMouseOver="this.className='trover'" onMouseOut="this.className='trout'" >
聽聽聽聽 <td nowrap class="tabletd" height=21 ><input type="radio" name="select"><SPAN>1</SPAN></td>
聽聽<td nowrap><div>fdgfg</div></td>
聽聽<td nowrap><div>fgfdsg</div></td>
聽聽<td nowrap><div>fdsgfdgdsg</div></td>
聽聽<td nowrap><div>fdsgfg</div></td>
聽聽<td nowrap><div>fsg</div></td>
聽聽 </tr>
聽聽 <tr nowrap height=21 onclick="tronclick(this)"聽 onMouseOver="this.className='trover'" onMouseOut="this.className='trout'">
聽聽聽聽 <td nowrap class="tabletd" height=21 ><input type="radio" name="select" ><span>2</span></td>
聽聽<td><div>gf</div></td>
聽聽<td><div> </div></td>
聽聽<td><div>fgsfg</div></td>
聽聽<td><div> </div></td>
聽聽<td><div>fgsfdg</div></td>
聽聽 </tr>
聽聽 <tr height=21聽 onclick="tronclick(this)"聽 onMouseOver="this.className='trover'" onMouseOut="this.className='trout'">
聽聽聽聽 <td nowrap class="tabletd" height=21 ><input type="radio" name="select" ><span>3</span></td>
聽聽<td><div>gfdg</div></td>
聽聽<td><div>fsgfdg</div></td>
聽聽<td><div>dsg</div></td>
聽聽<td><div>vcbsrdger</div></td>
聽聽<td><div>fgetr</div></td>
聽聽 </tr>
聽 </table>
</div>
聽 <p> </p>
聽 <p> </p>
聽 <p> </p>
聽 <table width="539" height="71" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#c2c2c2">
聽聽聽 <tr>
聽聽聽聽聽 <input type="hidden" name="hid1" id="hid1" value="add">
聽聽聽聽聽 <td width="46" height="22" bgcolor="#f7f7f7"><div style="font-size:12px">搴忓彿</div></td>
聽聽聽聽聽 <td width="212" bgcolor="#ffffff"><input type="text" id="input1" name="input1" class="text" readonly="true"/></td>
聽聽聽聽聽 <td width="63" bgcolor="#f7f7f7"><div style="font-size:12px">鏍囧織</div></td>
聽聽聽聽聽 <td width="197" bgcolor="#ffffff"><input type="text" id="input2" name="input2" class="text"聽 readonly="true"/></td>
聽聽聽 </tr>
聽聽聽 <tr>
聽聽聽聽聽 <td height="22" bgcolor="#f7f7f7"><div style="font-size:12px">鎵撳嵃</div></td>
聽聽聽聽聽 <td bgcolor="#ffffff"><input type="text" id="input3" name="input3" class="text"聽 readonly="true"/></td>
聽聽聽聽聽 <td bgcolor="#f7f7f7"><div style="font-size:12px">璁″垝鏃ユ湡</div></td>
聽聽聽聽聽 <td bgcolor="#ffffff"><input type="text" id="input4" name="input4" class="text"聽 readonly="true"/></td>
聽聽聽 </tr>
聽聽聽 <tr>
聽聽聽聽聽 <td height="21" bgcolor="#f7f7f7"><div style="font-size:12px">綾誨埆</div></td>
聽聽聽聽聽 <td height="20" bgcolor="#ffffff"><input type="text" id="input5" name="input5" class="text"聽 readonly="true"/></td>
聽聽聽聽聽 <td height="21" bgcolor="#f7f7f7"><div style="font-size:12px">鍝佸悕</div></td>
聽聽聽聽聽 <td height="21" bgcolor="#ffffff"><input type="text" id="input6" name="input6" class="text"聽 readonly="true"/></td>
聽聽聽 </tr>
聽 </table>
聽 <p> </p>
</body>
</html>
=========================================
璇ヨ〃鏍兼墍闇璋冪敤鐨刯ava綾誨涓嬶細
package com.pdw.dwr;
import java.io.IOException;
import javax.servlet.ServletException;
import org.apache.commons.lang.*;
import uk.ltd.getahead.dwr.ExecutionContext;
import com.pdw.wschild.*;
public class DynaTable {
聽public String addSaveRecord(String arg1,String arg2,String arg3,String arg4,String arg5,String arg6,String action) {
聽聽arg1=StringUtils.remove(arg1,"'");
聽聽arg2=StringUtils.remove(arg2,"'");
聽聽arg3=StringUtils.remove(arg3,"'");
聽聽arg4=StringUtils.remove(arg4,"'");
聽聽arg5=StringUtils.remove(arg5,"'");
聽聽arg6=StringUtils.remove(arg6,"'");
聽聽action=StringUtils.remove(action,"'");
聽聽if(action.equals("add")){
聽聽聽System.out.println("浣犳墽琛岀殑鏄坊鍔?.......");
聽聽}
聽聽System.out.println("action->"+action);
聽聽System.out.println(arg1+"->"+arg2+"->"+arg3+"->"+arg4+"->"+arg5+"->"+arg6);
聽聽return "娣誨姞鎴愬姛";
聽}
聽
聽public String editSaveRecord(String arg1,String arg2,String arg3,String arg4,String arg5,String arg6,String action) {
聽聽String result="淇敼鎴愬姛";
聽聽arg1=StringUtils.remove(arg1,"'");
聽聽arg2=StringUtils.remove(arg2,"'");
聽聽arg3=StringUtils.remove(arg3,"'");
聽聽arg4=StringUtils.remove(arg4,"'");
聽聽arg5=StringUtils.remove(arg5,"'");
聽聽arg6=StringUtils.remove(arg6,"'");
聽聽action=StringUtils.remove(action,"'");
聽聽System.out.println("action->"+action);
聽聽System.out.println(arg1+"->"+arg2+"->"+arg3+"->"+arg4+"->"+arg5+"->"+arg6);
聽聽return result;
聽}
聽
聽public String deleteRecord(String vid) {
聽聽String id=StringUtils.remove(vid,"'");
聽聽String result="鍒犻櫎鎴愬姛";
聽聽System.out.println("浣犺鍒犻櫎璁板綍鐨刬d->"+id);
聽聽return result;
聽}
聽
聽聽 /**
聽聽聽 * 璋冪敤WebServices榪斿洖鍖歸厤鍚庤繑鍥炵殑瀛楃涓叉暟鎹?br />聽聽聽 * @param vaddress
聽聽聽 * @return
聽聽聽 */
聽public String[] matchAddress(String vaddress) {
聽聽String[] ary_return=null;
聽聽try {
聽聽聽String address=StringUtils.remove(vaddress,"'");
聽聽聽WS_gzaddrService ws_gzaddrservice=new WS_gzaddrServiceLocator();
聽聽聽WS_gzaddr_PortType client=ws_gzaddrservice.getWS_gzaddr();
聽聽聽return client.address_butt(address);
聽聽}catch(Exception e) {
聽聽聽e.printStackTrace();
聽聽}
聽聽return ary_return;
聽}
聽
聽public String getInclude() throws ServletException, IOException
聽{
聽聽聽聽 return ExecutionContext.get().forwardToString("/f1.jsp");
聽}
}
=================
AJAX浣跨敤鐨勬鏋舵槸錛欴WR
dwr.xml鐨勯厤緗枃浠跺涓嬶細
<dwr>
聽聽 <allow>
聽聽聽 <create creator="new" javascript="JDate">
聽聽聽聽聽 <param name="class" value="java.util.Date"/>
聽聽聽 </create>
聽聽聽 <create creator="new" javascript="DwrHello">
聽聽聽聽聽聽 <param name="class"聽 value="com.pdw.dwr.DwrHello"/>
聽聽聽 </create>
聽聽聽 <create creator="new" javascript="DynaTable">
聽聽聽聽聽聽 <param name="class" value="com.pdw.dwr.DynaTable"/>
聽聽聽 </create>
聽 </allow>
聽
</dwr>
=================fastpos.html=======
<html>
聽 <head>
聽聽聽 <title>蹇熷畾浣?lt;/title>
聽聽聽
聽聽聽 <meta http-equiv="pragma" content="no-cache">
聽聽聽 <meta http-equiv="cache-control" content="no-cache">
聽聽聽 <meta http-equiv="expires" content="0">聽聽聽
聽聽聽 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
聽聽聽 <meta http-equiv="description" content="This is my page">
聽
聽<style type="text/css">
聽聽 body{font-size:12px}
聽聽 td{font-size:12px}
聽</style>
聽<SCRIPT langague="javascript">
聽聽聽 var row_num=1;
聽聽聽 function winclose(){
聽聽聽聽聽 window.close();
聽聽聽 }
聽聽聽 function pos(){
聽聽聽聽聽聽 var parentWin=window.dialogArguments;
聽聽聽聽聽聽 //parentWin.document.all("input1").value="dfasfdsf";
聽聽聽聽聽聽 var ptable=parentWin.document.all("tabA");
聽聽聽聽聽聽 var tr=ptable.rows;
聽聽聽聽聽聽 for(var row_num=1;row_num<tr.length;row_num++){
聽聽聽聽聽聽聽聽聽 if((tr[row_num].cells[0].children[1].innerText==document.all("id").value)&&(tr[row_num].cells[5].children[0].innerText==document.all("procdure").value)){
聽聽聽聽聽聽聽聽聽聽聽聽聽 alert("鎵懼埌浜?");
聽聽聽聽聽聽聽聽聽聽聽聽聽 parentWin.tronclick(tr[row_num]);
聽聽聽聽聽聽聽聽聽聽聽聽聽 tr[row_num].scrollIntoView()
聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽 }
聽聽聽 }
聽</SCRIPT>
聽 </head>
聽
聽 <body topmargin="0" leftmargin="0" style="overflow-x:hidden;overflow-y:hidden">
聽 <table width="380" height="102" border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
聽聽聽 <tr>
聽聽聽聽聽 <td height="24" align="center" bgcolor="#E1F0D2" colspan="6" style="font-size:12px">蹇熷畾浣?lt;/td>
聽聽 </tr>
聽聽聽 <tr>
聽聽聽聽聽 <td width="71" height="23" bgcolor="#f5f5f5"> 搴忓彿 </td>
聽聽聽聽聽 <td width="306" bgcolor="#ffffff"> <input type="text" name="id"></td>
聽聽聽 </tr>
聽聽聽 <tr>
聽聽聽聽聽 <td height="24" bgcolor="#f5f5f5"> 鍝佸悕</td>
聽聽聽聽聽 <td bgcolor="#ffffff"><input type="text" name="procdure"></td>
聽聽聽 </tr>
聽聽聽 <tr>
聽聽聽聽聽 <td colspan="2" >
聽聽聽聽聽聽聽 <div align="center">
聽聽聽聽聽聽聽聽聽 <input type="button" name="Submit" value="瀹?浣? onclick="pos()">
聽聽聽聽聽聽聽聽聽 <input type="button" name="Submit" value="鍏?闂? onclick="winclose()">
聽聽聽聽聽聽聽 </div></td>
聽聽聽 </tr>
聽 </table>
聽 </body>
</html>