I noticed this too, but putting the '/physrcrtadmin' in there doesn't matter, it still doesn't work...??? But I do think it might be some kind of path or reference issue.....
Thanks, -Eric Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt Lake City, Utah 84111 United States of America (USA) (801) 442-3688 -- e-mail: [EMAIL PROTECTED] >>> [EMAIL PROTECTED] 3/2/2005 7:21:40 AM >>> In addition to not needing the ampersand, the first and second href seem to point differently. The first points to: /physrcrtadmin/AttachmentAction.do The second to: AttachmentAction.do Which may be the same place already if whatever page you got this from is in the same directory tree but it's not obvious from the below.. Maybe adding a simple debug statement on the server-side with the value of attachment_id (and/or all request parameters) will make it obvious what's coming through and what to change. Regards...djsuarez -----Original Message----- From: Curtis Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 10:32 PM To: user@struts.apache.org Subject: Re: One last ATTACHMENT issue Shot in the dark here: IIRC, you don't need the ampersand after the initial question mark in the request URL. Try killing that & see what happens... Good luck, -- Curtis Eric Lemle wrote: > Can anyone tell me why this.... > > <a href="/physrcrtadmin/AttachmentAction.do?&attachment_id=341" > target="ResumeAttachment">VeselovaNataliaECV.doc</a> > > ....works perfectly. > > > But this..... > > function printAttachment( id, name ) > { > childWindow=window.open( 'AttachmentAction.do?&attachment_id='+id, > name, > 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=y es,copyhistory=no,scrollbars=yes,width=790,height=600'); > childWindow.focus(); > } > which is called with... > > if(document.forms[0].printCV.checked==true || > document.forms[0].printAllAttachments.checked==true) { > printAttachment( '341', 'printCV'); > } > > ....throws an error messages saying it can find the file. > > > ? > > > > > Eric D. Lemle > Senior Programmer / Analyst > Intermountain Health Care > 36 South State Street, Suite 1100 > Salt Lake City, Utah 84111 > United States of America (USA) > (801) 442-3688 -- e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]