The jsp code is as follows::
Copy codeThe Code is 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 codeThe Code is 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 codeThe Code is as follows: String keywords = info. getCellStr ("I", 0, "keywords ");
Keywords = URLDecoder. decode (keywords, "UTF-8 ");