The JSP code is as follows :
Copy Code code as follows:
<a id= "WD" Name= "WD" href= "javascript:void (0);" onclick= "Wdquery ()" > Documentation </a>
<a id= "XW" name= "XW" href= "Javascript:void" (0); "onclick=" Xwquery () > Company News </a>
Copy Code code as follows:
function Wdquery () {
var keywords= document.getelementbyid ("I-0-keywords"). Value;
var loginname= document.getelementbyid ("I-0-loginname"). Value;
Alert ("keywords2==" +keywords+ "-loginname==" +loginname);
Keywords=encodeuri (keywords);
Keywords=encodeuri (keywords);
Loginname=encodeuri (keywords);
Loginname=encodeuri (keywords);
Alert ("keywords2==" +keywords+ "-loginname==" +loginname);
$ ("#wd"). attr ("href", "${ctx}/dispatchaction.do?servicename=searchweb&efformename=fs01&methodname=query &i-0-moduleid=bmoa_bmdc&i-0-keywords= "+keywords+" &i-0-loginname= "+loginname);
}
function Xwquery () {
var keywords= document.getelementbyid ("I-0-keywords"). Value;
var loginname= document.getelementbyid ("I-0-loginname"). Value;
Alert ("keywords2==" +keywords+ "-loginname==" +loginname);
Keywords=encodeuri (keywords);
Keywords=encodeuri (keywords);
Loginname=encodeuri (keywords);
Loginname=encodeuri (keywords);
Alert ("keywords2==" +keywords+ "-loginname==" +loginname);
$ ("#xw"). attr ("href", "${ctx}/dispatchaction.do?servicename=searchweb&efformename=fs01&methodname=query &i-0-moduleid=bmoa_bair&i-0-keywords= "+keywords+" &i-0-loginname= "+loginname);
}
The background code is as follows:
Copy Code code as follows:
String keywords=info.getcellstr ("I", 0, "keywords");
Keywords=urldecoder.decode (keywords, "UTF-8");