快速业务通道

在JavaScript程序中整合Java函数 - 编程入门网

作者 佚名技术 来源 NET编程 浏览 发布时间 2012-06-22
writeURL1(s,id)"); printwriter.println("{"); printwriter.println("if (s.indexOf(''?'')>0) return s+''&''+id+''=''+''" + s + "'';"); printwriter.println("return s+''?''+id+''=''+''" + s + "'';"); printwriter.println("}"); printwriter.println("function rewriteURL2(s,id,vl)"); printwriter.println("{"); printwriter.println("if (s.indexOf(''?'')>0) return s+''&''+id+''=''+vl;"); printwriter.println("return s+''?''+id+''=''+vl;"); printwriter.println("}"); printwriter.println("function rewriteURL(doc)"); printwriter.println("{"); printwriter.println(" i=rewriteURL.arguments.length;"); printwriter.println(" if (i>1)"); printwriter.println(" {"); printwriter.println(" tmp=rewriteURL.arguments[1];"); printwriter.println(" for (j=0; j<doc.links.length; j++)"); printwriter.println(" {"); printwriter.println(" s=doc.links[j].href;"); printwriter.println(" if (s.indexOf(tmp+''='')<0)"); printwriter.println(" {"); printwriter.println(" if (i==2) doc.links[j].href=rewriteURL1(s,tmp);"); printwriter.println(" else doc.links[j].href=rewriteURL2(s,tmp,rewriteURL.arguments[2]);"); printwriter.println(" }"); printwriter.println(" }"); printwriter.println(" for (j=0; j<doc.forms.length; j++)"); printwriter.println(" {"); printwriter.println(" s=doc.forms[j].action;"); printwriter.println(" if (s.indexOf(tmp+''='')<0)"); printwriter.println(" {"); printwriter.println(" if (i==2) doc.forms[j].action=rewriteURL1(s,tmp);"); printwriter.println(" else doc.forms[j].action=rewriteURL2(s,tmp,rewriteURL.arguments[2]);"); printwriter.println(" }"); printwriter.println(" }"); printwriter.println(" }"); printwriter.println(" return " + s + ";"); printwriter.println("}"); printwriter.println("</script>"); printwriter.println("</html>"); printwriter.flush(); printwriter.close(); } private String getFile(String s, HttpServletRequest httpservletrequest) { String s1 = httpservletrequest.getRequestURI(); String s2 = ""; if(s1.endsWith("jinj") || s1.endsWith("JinJ.class")) { if(s == null) return null; s1 = getFromQuery(s, "df="); if(s1.length() == 0) s2 = s; else s2 = s1; } else { s2 = s1; } if(s2 == null) return s2; if(s2.length() == 0) return s2; if(s2.charAt(0) == ''/'') s2 = s2.substring(1); return DOCUMENT_ROOT + s2.replace(''/'', separator.charAt(0)); } private String getUrl(HttpServletRequest httpservletrequest) { if(THIS_SERVLET.length() > 0) return THIS_SERVLET; String s1 = httpservletrequest.getRequestURI(); String s = HttpUtils.getRequestURL(httpservletrequest).toString(); int i; if((i

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号