struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Metin Erksan <mavieksen2...@yahoo.co.uk>
Subject RE: displaytag1.0rc2 (export) and struts problem
Date Thu, 06 Jan 2005 07:07:10 GMT
hi
it downloads myaction.do as a file .?
but in its export example , this func does not work like this
below is my code
 
<display:table 
      name="List" 
      export="true" 
      requestURI="hizAction.do?action=preinsert"     
      id="XXX">
      
  <display:column 
  property="hizNo" 
  title="hizNo" />
  
  <display:column 
  property="hiz" 
  title="hiz" />
  
  <display:column 
  property="birimi" 
  title="birimi" />
  
  
  <display:column 
  title="ÝÞLEMLER"
  href="hizAction.do?action=update_view"
  paramId="hizNo" 
  media=""
  paramProperty="hizNo"  >  
          <img src="image/t_edit.gif"  alt=" Güncelle " width="15" height="15" border="0">

 </display:column>
 
  <display:column 
    href="hizAction.do?action=delete"
    paramId="hizNo" 
    media=""
    paramProperty="hizNo">
               <img src="image/t_delete.gif"  alt=" Sil " width="15" height="15" border="0"
onclick="return checkDelete()"> 
  </display:column>
  
</display:table>
<script type="text/javascript">
  
    var table = document.getElementById("XXX");
    var rows = table.getElementsByTagName("td");
    
    for (i=0; i < rows.length; i++) 
    {
              rows[i].onclick = function() 
              {
              var cell = this.getElementsByTagName("td")[0];
              var link = cell.firstChild;
              var id = link.firstChild.nodeValue;
              location.href='hizAction.do?action=delete&hizNo='+id;
              
              this.style.cursor="wait";
              }
                         
     }
     
</script>


Jim Barrows <jbarrows@sssc.com> wrote:


> -----Original Message-----
> From: Metin Erksan [mailto:mavieksen2004@yahoo.co.uk]
> Sent: Tuesday, January 04, 2005 10:59 AM
> To: Struts Users Mailing List
> Subject: RE: displaytag1.0rc2 (export) and struts problem
> 
> 
> hi
> 
> it wants to download "myAction.do" not the excell file.

Ummm... okay... that appears to be normal as well... When I set export="true" on my webapp
it generates:
/OnlineLoans2/chooseSchool.do?6578706f7274=1&action=Continue&d-16544-e=2&stateSchoolIsIn=AZ
of which action and stateSchoolIsIn are the only two parameters I have coded. The rest are
created by the tag. The tag is creating this file on the fly, so this may very well be correct.
What does it actually download?

> 
> sincerely
> 
> Jim Barrows wrote:
> 
> 
> > -----Original Message-----
> > From: Metin Erksan [mailto:mavieksen2004@yahoo.co.uk]
> > Sent: Tuesday, January 04, 2005 1:03 AM
> > To: user@struts.apache.org
> > Subject: displaytag1.0rc2 (export) and struts problem
> > 
> > 
> > hi
> > 
> > i use jdeveloper10g and dipslaytag10rc2. i want to use export 
> > property but when i click to "excell" link it shows up a 
> > window that wants to save file ? how can i correct this?
> 
> What do you want it to do? That's the correct behavior.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> ---------------------------------
> ALL-NEW Yahoo! Messenger - all new features - even more fun! 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


		
---------------------------------
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message