`
haihongxingzi
  • 浏览: 150873 次
  • 性别: Icon_minigender_1
  • 来自: 瑟孔达
社区版块
存档分类
最新评论
文章列表
IE打印window.print2008-09-30 17:33window.print是IE打印中的一种比较简单的打印方法。 默认window.print打印会将页眉页脚也打印出来,可以通过javascript控制去掉页眉页脚。 function doPrint() { /// 隐藏不需要打印的内容         try     {         PageSetup_Null();     }     catch(e)     {         var errorMsg = e.message+"\r"+"请设置:IE选项->安全->In ...
打印指定区域,页面设置 <%@ page contentType="text/html; charset=GBK"%> <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="c" uri="commontaglib"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""htt ...
只能调用本地的程序.     <SCRIPT   language=JavaScript>     function   Run(strPath)   {     exe.value=strPath;     try   {     var   objShell   =   new   ActiveXObject("wscript.shell");     objShell.Run(strPath);     objShell   =   null;     }     catch   (e){alert('找不到文件"'+strPat ...
页面跳转 <meta HTTP-EQUIV=refresh Content='10;url=http://hi.baidu.com/shownan'> 四个页面跳转 1.在<head></head>区域加入 <meta http-equiv=Pragma content=no-cache> <Meta http-equiv="refresh" content="3;url='http://hi.baidu.com/shownan'; "> 2.Javascript <sc ...
index.htm <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body> <input type="hidden" id="input" value="str"> &l ...
  1、最基本的弹出窗口代码         其实代码非常简单:         〈SCRIPT   LANGUAGE="javascript"〉       〈!--       window.open   ("page.html")       --〉       〈/SCRIPT〉         因为这是一 ...
一个简单的树形结构,在附件里!
用数组: char[] c=a.toCharArray(); c[0]='b'; a=new String(c); 用StringBuffer(): StringBuffer b = new StringBuffer( a ); b.setCharAt( 0 , 'b' );//单引号 a=b.toString();
设为首页 <a href="#" onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com');" style="CURSOR: hand">设为首页</a> 加入收藏 方法一: <a onClick="window.external.addFavorite('http://www.baidu.com ...
SQL注入攻击的总体思路: 发现SQL注入位置; 判断服务器类型和后台数据库类型; 确定可执行情况 对于有些攻击者而言,一般会采取sql注入法。下面我也谈一下自己关于sql注入法的感悟。 注入法: 从理论上说,认证网页中会有型如: select * from admin where username='XXX' and password='YYY' 的语句,若在正式运行此句之前,如果没有进行必要的字符过滤,则很容易实施SQL注入。 如在用户名文本框内输入:abc’ or 1=1-- 在密码框内输入:123 则SQL语句变成: select * from admin where userna ...
import java.io.*; public class MyEclipseGen { private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under ...
方法一: 找到安装目录下的weblogic\common\bin\commEnv.cmd文件,打开修改如下代码: sun if "%PRODUCTION_MODE%" == "true" goto sun_prod_mode set JAVA_VM=-client set MEM_ARGS=-Xms768m -Xmx1024m -XX:MaxPermSize=256m set JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:none goto continue :sun_prod_mode set JAVA_VM=-server ...
WebLogic10 | MyEclipse |Eclipse 配置 在上一篇有详细的说明! 现在针对遇到的问题做一下说明: 部署好项目以后,启动服务报以下错误: ClassNotFoundException: org.hibernate.hql.ast.HqlToken     原因是: 在hibernate3中需要用到antlr.jar,然而这个包在weblogic.jar中已经包含了antrl类库,就会产生一些类加载的错误,无法找到在war或者ear中的hibernate3.jar。而出现这个错误之后,antlr会调用System.exit(),这样weblogic就会中止服务。   ...
安装 WebLogic 比较容易,在这里就不再累述了,大家可以参阅相关文档。现在着重讲一下 WebLogic 的配置,因为后面在配置 MyEclipse 时将用到这里的配置信息。 ①运行开始 -> 程序 -> BEA Products -> Tools -> Configuration Wizard。 ②选择 Create a new WebLogic domain,Next。 ③在 Select Domain Source 界面保持默认,Next。 ④在 User name 处输入 user,两个 password 都输入 12345678(密码要求 8 位) ...
http://www.cnitblog.com/jackmisweijie/archive/2008/08/07/47756.html weblogic简介       BEA WebLogic是用于开发、集成、部署和管理大型分布式Web应用、网络应用和数据库应 用的Java应用服务器。将Java的动态功能和Java Enterprise标准的安全性引入大型网络应用的开发、集成、部署和管理之中。   BEA WebLogic Server拥有处理关键Web应用系统问题所需的性能、可扩展性和高可用性。 与BEA WebLogic Commerce ServerTM配合使用, BEA WebL ...
Global site tag (gtag.js) - Google Analytics