能!例如当你在文件上右键在弹出快捷菜单中点击压缩时就能取到文件的绝对路径名.其他复制剪切都能取到,不知如何实现,并与java关联起来!!急啊!

解决方案 »

  1.   

    TO: charlie0895(命) 
       谢谢您!
      

  2.   

    给段代码你看看 :
    <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
    <%@ taglib uri="/tags/oscache" prefix="cache"%>
    <%@ taglib uri="/tags/iPanel" prefix="iPanel"%>
    <%@ taglib uri="/tags/struts-logic" prefix="logic"%><%@ page contentType="text/html;charset=GB2312" %>
    <cache:cache>
    <HTML><HEAD>
    <TITLE>
    <decorator:title default="Document Manager System"/></TITLE>
    <decorator:head />
    <LINK href="<%=request.getContextPath()%>/css/page.css" type=text/css rel=stylesheet>
    </HEAD><BODY text=#000000 bgColor=#ffffff><!--================= start Navigation Path ==================-->
    <TABLE cellSpacing=0 cellPadding=0 width="100%" summary="navigation path" border=0>
      <TBODY>
      <TR>
        <TD vAlign=center noWrap bgColor=#cfdced height=20>
    <IMG class=spacer height=1 alt="" src="<%=request.getContextPath()%>/images/spacer.gif" width=5>
      <!--===== breadcrumb trail (javascript-generated) ====-->
      
      <FONT    face="Arial, Helvetica, Sans-serif" size=2>
          <SCRIPT language=JavaScript src="<%=request.getContextPath()%>/js/breadcrumbs.js"  type=text/javascript></SCRIPT>
          </FONT>
     </TD>
      </TR>
      <TR>
        <TD bgColor=#4c6c8f height=2><IMG class=spacer height=2 alt="" 
          src="<%=request.getContextPath()%>/images/spacer.gif" width=2>
      </TD>
      </TR></TBODY>
    </TABLE>
      <!--================= end Navigation Path ==================-->
      
      <!--================= start Banner ==================-->
    <TABLE cellSpacing=0 cellPadding=0 width="100%" summary="header with logos" border=0>
      <TBODY>
      <TR>
      <!--================= start Group Logo ==================-->
        <TD bgColor=#294563><A href="http://eis.org/">
    <IMG class=logoImage title="ipanel Description" alt=Eis src="<%=request.getContextPath()%>/images/group2.png" border=0>
    </A>
       </TD>
       
       <!--================= end Group Logo ==================-->
       
       <!--================= start Project Logo ==================-->
        <TD align=middle width="100%" bgColor=#294563><A 
          href="http://myproj.eis.org/"><IMG class=logoImage 
          title="MyProject Description" alt=MyProject src="<%=request.getContextPath()%>/images/project2.png" border=0></A>
      </TD>
      <!--================= end Project Logo ==================-->
      
      <!--================= start Search ==================-->
        <TD vAlign=top bgColor=#294563 rowSpan=2>
          <FORM action=http://www.google.com/search method=get target=_blank>
          <TABLE cellSpacing=0 cellPadding=0 bgColor=#4c6c8f summary=search border=0>
            <TBODY>
            <TR>
              <TD colSpan=3>
      <IMG class=spacer height=10 alt="" src="<%=request.getContextPath()%>/images/spacer.gif" width=1>
      </TD>
      </TR>
            <TR>
              <TD><IMG class=spacer height=1 alt="" src="<%=request.getContextPath()%>/images/spacer.gif"  width=1>
      </TD>
              <TD noWrap>
      <INPUT type=hidden value=mydomain name=sitesearch>
      <INPUT 
                id=query size=15 name=q>
    <IMG class=spacer height=1 alt=""  src="<%=request.getContextPath()%>/images/spacer.gif" width=5>
    <INPUT type=submit value=Search name=Search> <BR>
    <FONT  face="Arial, Helvetica, Sans-serif" color=white size=2>Document Manager System </FONT>
      </TD>
              <TD>
      <IMG class=spacer height=1 alt="" src="<%=request.getContextPath()%>/images/spacer.gif" width=1>
      </TD>
      </TR>
            <TR>
              <TD><IMG height=10 alt="" src="<%=request.getContextPath()%>/images/search-left.gif" width=9 border=0></TD>
              <TD><IMG class=spacer height=1 alt="" src="<%=request.getContextPath()%>/images/spacer.gif"  width=1></TD>
              <TD><IMG height=10 alt="" src="<%=request.getContextPath()%>/images/search-right.gif" width=9  border=0></TD>
      </TR>
      </TBODY>
      </TABLE>
        </FORM>
      </TD>
      
      
      <!--================= end search ==================-->
      
      
        <TD bgColor=#294563><IMG class=spacer height=10 alt=""  src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD>
    </TR>

      <TR>
        <TD vAlign=bottom bgColor=#294563 colSpan=2>

    <!--================= start Tabs ==================-->
          <DIV class=tab>
          <TABLE cellSpacing=0 cellPadding=0 summary="tab bar" border=0>
            <TBODY>
            <TR>
              <TD width=6><IMG height=8 alt="" src="<%=request.getContextPath()%>/images/spacer.gif" width=6></TD>
              <TD vAlign=bottom>
      
                <TABLE style="HEIGHT: 1.8em" cellSpacing=0 cellPadding=0   summary="selected tab" border=0>
                  <TBODY>
                  <TR>
                    <TD vAlign=top width=5 bgColor=#4c6c8f>
    <IMG height=5 alt="" src="<%=request.getContextPath()%>/images/tabSel-left.gif" width=5></TD>
                    <TD vAlign=center bgColor=#4c6c8f>
      <FONT color=#ffffff size=2><B><A class=base-selected href="http://www.eis/office/rcc/index.html">&#20027;&#39029;</A></B></FONT>
    </TD>
                    <TD vAlign=top width=5 bgColor=#4c6c8f>
    <IMG height=5 alt=""   src="<%=request.getContextPath()%>/images/tabSel-right.gif" width=5>
    </TD>
    </TR>
    </TBODY></TABLE>
    </TD>
      </TR>
    </TBODY>
      </TABLE>
    </DIV>
    <!--================= end Tabs ==================-->
      </TD>
        <TD bgColor=#294563><IMG class=spacer height=1 alt="" 
          src="<%=request.getContextPath()%>/images/spacer.gif" width=1></TD></TR>
      <TR>
        <TD bgColor=#4c6c8f colSpan=4><IMG class=spacer height=10 alt="" 
          src="<%=request.getContextPath()%>/images/spacer.gif" width=1></TD></TR></TBODY></TABLE>
      

  3.   

    <!--================= end Banner ==================-->
      
      <!--================= start Menu, NavBar, Content ==================-->
    <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#ffffff 
    summary="page content" border=0>
      <TBODY>
      <TR>
        <TD vAlign=top>
          <TABLE cellSpacing=0 cellPadding=0 summary=menu border=0>
            <TBODY>
            <TR><!--================= start left top NavBar ==================-->
              <TD vAlign=top rowSpan=3>
                <TABLE cellSpacing=0 cellPadding=0 summary="blue line" border=0>
                  <TBODY>
                  <TR>
                    <TD bgColor=#294563><IMG class=spacer height=1 alt="" 
                      src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD></TR>
                  <TR>
                    <TD bgColor=#cfdced><FONT face="Arial, Helvetica, Sans-serif" 
                      color=#4c6c8f size=4>&nbsp;</FONT></TD></TR>
                  <TR>
                    <TD bgColor=#294563><IMG class=spacer height=1 alt="" 
                      src="i<%=request.getContextPath()%>/images/spacer.gif" width=10></TD></TR></TBODY></TABLE></TD><!--================= end left top NavBar ==================-->
              <TD bgColor=#294563><IMG class=spacer height=1 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=1></TD>
              <TD vAlign=bottom bgColor=#4c6c8f><IMG class=spacer height=10 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD>
              <TD vAlign=top noWrap bgColor=#4c6c8f>
      
      <!--================= start Menu items ==================-->
      
                <DIV class=menu style="width:180;">

    <table border=0 cellspacing=0 width='100%'>
    <tr>
    <td>&#39033;&#30446;&#21517;&#31216;</td>
    </tr>
    <iPanel:getProjList id="projList" scope="page"/><logic:iterate id="proj" name="projList" type="com.ipanel.docm.model.Project">
       
          <tr><td><a href="<%=request.getContextPath()%>/listActDocument.do?project_id=<%=proj.getId()%>"><%=proj.getName()%></a></td></tr>
    </logic:iterate>
    </table><hr align="left" width="75%" color="#000000"> </DIV>

    <!--================= end Menu items ==================-->

    </TD>

              <TD vAlign=bottom bgColor=#4c6c8f><IMG class=spacer height=10 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD>
              <TD bgColor=#294563><IMG class=spacer height=1 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=1></TD></TR>
            <TR>
              <TD vAlign=bottom align=left bgColor=#4c6c8f colSpan=2 
                rowSpan=2><IMG height=10 alt="" src="<%=request.getContextPath()%>/images/menu-left.gif" 
                width=10 border=0></TD>
              <TD bgColor=#4c6c8f><IMG class=spacer height=10 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD>
              <TD vAlign=bottom align=right bgColor=#4c6c8f colSpan=2 
                rowSpan=2><IMG height=10 alt="" src="<%=request.getContextPath()%>/images/menu-right.gif" 
                width=10 border=0></TD></TR>
            <TR>
              <TD bgColor=#294563 height=1><IMG class=spacer height=1 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=1></TD></TR></TBODY></TABLE></TD>
        <TD vAlign=top width="100%">
          <TABLE cellSpacing=0 cellPadding=0 width="100%" summary=content border=0>
      
      <!--================= start middle NavBar ==================-->
            <TBODY>
            <TR>
              <TD bgColor=#294563 colSpan=4><IMG class=spacer height=1 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD></TR>
            <TR>
              <TD align=left width=10 bgColor=#cfdced><IMG class=spacer height=1 
                alt="" src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD>
              <TD align=left width="50%" bgColor=#cfdced><FONT 
                face="Arial, Helvetica, Sans-serif" color=#4c6c8f size=3>&nbsp; 
                </FONT><IMG class=spacer height=8 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD>
              <TD align=right width="50%" bgColor=#cfdced><FONT 
                face="Arial, Helvetica, Sans-serif" color=#4c6c8f size=3>&nbsp; 
                </FONT><IMG class=spacer height=8 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD>
              <TD width=10 bgColor=#cfdced><IMG class=spacer height=1 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD></TR>
      

  4.   

    <TR>
              <TD bgColor=#294563 colSpan=4><IMG class=spacer height=1 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD></TR>
    <!--================= end middle NavBar ==================-->

    <!--================= start Content==================-->
            <TR>
              <TD align=left width=10><IMG class=spacer height=1 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD>
              <TD align=left width="100%" colSpan=2>
      
      
    </cache:cache>   
    <DIV class=content>
    <decorator:body /></DIV>
    <cache:cache>
     
     
     </TD>
              <TD width=10><IMG class=spacer height=1 alt="" 
                src="<%=request.getContextPath()%>/images/spacer.gif" width=10></TD></TR>

    <!--================= end Content==================--></TBODY></TABLE></TD></TR></TBODY></TABLE><!--================= end Menu, NavBar, Content ==================--><!--================= start Footer ==================-->
    <TABLE cellSpacing=0 cellPadding=0 width="100%" summary=footer border=0>
      <TBODY>
      <TR>
        <TD bgColor=#4c6c8f colSpan=2 height=1><IMG class=spacer height=1 alt="" 
          src="<%=request.getContextPath()%>/images/spacer.gif" width=1><A 
          href="http://www.eis/office/rcc/skin/images/label.gif"></A><A 
          href="http://www.eis/office/rcc/skin/images/page.gif"></A><A 
          href="http://www.eis/office/rcc/skin/images/chapter.gif"></A><A 
          href="http://www.eis/office/rcc/skin/images/chapter_open.gif"></A><A 
          href="http://www.eis/office/rcc/skin/images/current.gif"></A><A 
          href="http://www.eis/favicon.ico"></A></TD></TR>
      <TR>
        <TD class=copyright align=middle bgColor=#cfdced colSpan=2><FONT 
          face="Arial, Helvetica, Sans-Serif" size=2>Copyright&copy;      2004&nbsp;@&#28145;&#22323;&#24066;&#33537;&#22766;&#32593;&#32476;&#25216;&#26415;&#26377;&#38480;&#20844;&#21496; All rights reserved.
          <SCRIPT language=JavaScript type=text/javascript><!--
                  document.write(" - "+"Last Published: " + document.lastModified);
                //  --></SCRIPT>
          </FONT></TD>
      </TR>
      <TR>
        <TD class=logos align=left bgColor=#cfdced colSpan=2></TD></TR></TBODY></TABLE><!--================= end Footer ==================--></BODY></HTML>
    <div id="show" style="position: absolute;border: 1px solid red;background-color: ffffff;layer-background-color: ffffff;left: 350px;top: 193px;visibility: hidden;"></div>
    <script language="javascript">
    function changecolor(){
    event.srcElement.bgColor="#0000ff";
    }
    function gobackcolor(){
    event.srcElement.bgColor="#ff0000";
    }
    function move(){
    var me="show";
    if (document.layers) {da = document.layers[me];} 
    else if (document.all) {da = document.all(me).style;}
    da.left=event.clientX+20;
    da.top=event.clientY;
    }
    function show(type,me){
    if (document.layers) {visible = 'show'; hidden = 'hide';}
    else if (document.all) {visible = 'visible';hidden = 'hidden';}
    var da;
    if (document.layers) {da = document.layers[me];} 
    else if (document.all) {da = document.all(me).style;}
    da.left=event.clientX+20;
    da.top=event.clientY;

    switch(type){
    case 0:
    eval("document.all."+me+".innerHTML=document.f1.pj.value");
    da.visibility=visible;
    break;
    case 1:
    if(document.f1.project.value!=""){
    eval("document.all."+me+".innerHTML=document.f1.dc.value");
    da.visibility=visible;
    }
    else{
    alert("project is null");
    document.f1.project.focus();
    }
    break;
    case 2:
    if(document.f1.project.value==""){alert("project is null");document.f1.project.focus();break;}
    else if(document.f1.docucate.value==""){alert("docucate is null");document.f1.docucate.focus();break;}
    else{
    eval("document.all."+me+".innerHTML=document.f1.fn.value");
    da.visibility=visible;
    break;
    }
    }
    }
    function hidd(me){
    if (document.layers) {visible = 'show'; hidden = 'hide';}
    else if (document.all) {visible = 'visible';hidden = 'hidden';}
    var da;
    if (document.layers) {da = document.layers[me];} 
    else if (document.all) {da = document.all(me).style;}
    if(da.visibility!=hidden)da.visibility=hidden;
    }
    function check(){
    return true;
    }
    </script>
    </cache:cache>