那我的为什么不行了?jsp里面好像不能调用activex的

解决方案 »

  1.   

    <HTML> 
    <HEAD> 
    <script language="VBScript">
    dim hkey_root,hkey_path,hkey_key
    hkey_root="HKEY_CURRENT_USER"
    hkey_path="\Software\Microsoft\Internet Explorer\PageSetup"
    '//设置网页打印的页眉页脚为空
    function pagesetup_null()
    on error resume next
    Set RegWsh = CreateObject("WScript.Shell")
    hkey_key="\header"    
    RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
    hkey_key="\footer"
    RegWsh.RegWrite hkey_root+hkey_path+hkey_key,""
    end function
    </script>
     
    <title>print test!</title>
    </HEAD> 
    <BODY> 
     web print!
    <p style="page-break-after:always">page1</p>
    <a href="#" onclick="pagesetup_null()">设置网页打印的页眉页脚为空</a> <br>
    </BODY> 
    </HTML> 
    你能帮我看看这个例子直接打开能够执行,但为什么放在tomcat中就不能执行呢?
    是不是tomcat要设置?