RE: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?

2005-05-17 Thread Diogo Quintela \(EF\)
Everyone is...

---
Diogo Bacelar Quintela
EF - Tecnologias de Informação, Lda.
Av. António Serpa, 26 - 4º Dto.
1050-027 Lisboa, Portugal

-Original Message-
From: Guy Katz [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 17 de Maio de 2005 6:47
To: Tomcat Users List
Subject: RE: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?

am i the only one getting this annoying spam from the tomcat lisy?

-Original Message-
From: s [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 10:32 PM
To: tomcat-user@jakarta.apache.org
Subject: No such list! s


Valid Lists


New Atlanta List Server
---

There is no list by that name on this server. Available lists are:

   bluedragon-interest
   servletexec-interest
   jturbo-interest





-
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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: pdf not working

2005-05-04 Thread Diogo Quintela \(EF\)
Hello

Try adding the following any of the following response headers:
Content-Type, application/pdf
And any of the follwing..
Content-disposition,inline; filename=example.pdf
Content-disposition,attachment; filename=example.pdf
Content-disposition,filename= example.pdf


Diogo Quintela

@see http://support.microsoft.com/support/kb/articles/Q260/5/19.ASP
@see http://support.microsoft.com/support/kb/articles/Q279/6/67.ASP

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 4 de Maio de 2005 15:25
To: 'Tomcat Users List'
Subject: RE: pdf not working

I think your point 2 is more important. I found out that in IE, I have to
append .pdf somewhere in the url otherwise the ActiveX control that
interprets pdf simple wouldn't work. In my piece of work, I use
http://www.mydomain.com/myapp/statement.pdf?myquerystring... Mozilla/Firefox
has no such problem.

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: May 4, 2005 12:51 PM
To: 'Tomcat Users List'
Subject: RE: pdf not working


Here is what worked for me. The PDF is created dynamically.

1. a small bit of code which used FOP and served it as a stream. Be sure to
set the response type.

  byte[] fo;
  .
  .
  .
  InputSource fopInput = new InputSource( new ByteArrayInputStream( fo )
);
  ByteArrayOutputStream outStream = new ByteArrayOutputStream();
  Driver driver = new Driver( fopInput, outStream );
  driver.setLogger(log);
  driver.setRenderer(Driver.RENDER_PDF);
  driver.run();
  output = outStream.toByteArray();

  response.setContentType(application/pdf);
  response.resetBuffer();
  response.setContentLength(output.length);
  ServletOutputStream os = response.getOutputStream();
  os.write(output);
  os.close();

2. Also added to the URL at the end was the following:

pdf=.pdf\

   Can't remember where I found this idea, nor can I find it at this minute,
but it made it work.

hth,
Dave




-Original Message-
From: Jay Hulslander [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 04, 2005 6:17 AM
To: Tomcat Users List
Subject: Re: pdf not working


Just so I understand, file.jpg is hosted fine back to a browser.  File.pdf, 
in the same location, is not hosted back to the browser find.  Is that what 
you are experiencing?  Sounds like tomcat is configured to execute pdf 
documents as opposed to hosting them.  Much like you would configure a web 
server to execute streaming video as opposed to just hosting a video to be 
downloaded.  I do not know where this configuration is done in Tomcat, but 
that is where I would start.
-Jay
At 06:04 AM 5/4/2005, you wrote:
Hi all,

Iam trying to call a link to a new window and that's calling a pdf
document thats somewhere in my folder under webapps. The problem is 
that the pdf is not shown. If i try it with an image it will be 
displayed correctly. I am using Tomcat 5.5.

Maarten
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 3-5-2005


-
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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:4278d3bc82251395011244!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: pdf not working

2005-05-04 Thread Diogo Quintela \(EF\)
Next time I promise I'll read it before clicking Send. :-)
Diogo

-Original Message-
From: Diogo Quintela (EF) [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 4 de Maio de 2005 17:01
To: 'Tomcat Users List'
Subject: RE: pdf not working

Hello

Try adding the following any of the following response headers:
Content-Type, application/pdf
And any of the follwing..
Content-disposition,inline; filename=example.pdf
Content-disposition,attachment; filename=example.pdf
Content-disposition,filename= example.pdf


Diogo Quintela

@see http://support.microsoft.com/support/kb/articles/Q260/5/19.ASP
@see http://support.microsoft.com/support/kb/articles/Q279/6/67.ASP

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 4 de Maio de 2005 15:25
To: 'Tomcat Users List'
Subject: RE: pdf not working

I think your point 2 is more important. I found out that in IE, I have to
append .pdf somewhere in the url otherwise the ActiveX control that
interprets pdf simple wouldn't work. In my piece of work, I use
http://www.mydomain.com/myapp/statement.pdf?myquerystring... Mozilla/Firefox
has no such problem.

-Original Message-
From: David B. Saul [mailto:[EMAIL PROTECTED] 
Sent: May 4, 2005 12:51 PM
To: 'Tomcat Users List'
Subject: RE: pdf not working


Here is what worked for me. The PDF is created dynamically.

1. a small bit of code which used FOP and served it as a stream. Be sure to
set the response type.

  byte[] fo;
  .
  .
  .
  InputSource fopInput = new InputSource( new ByteArrayInputStream( fo )
);
  ByteArrayOutputStream outStream = new ByteArrayOutputStream();
  Driver driver = new Driver( fopInput, outStream );
  driver.setLogger(log);
  driver.setRenderer(Driver.RENDER_PDF);
  driver.run();
  output = outStream.toByteArray();

  response.setContentType(application/pdf);
  response.resetBuffer();
  response.setContentLength(output.length);
  ServletOutputStream os = response.getOutputStream();
  os.write(output);
  os.close();

2. Also added to the URL at the end was the following:

pdf=.pdf\

   Can't remember where I found this idea, nor can I find it at this minute,
but it made it work.

hth,
Dave




-Original Message-
From: Jay Hulslander [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 04, 2005 6:17 AM
To: Tomcat Users List
Subject: Re: pdf not working


Just so I understand, file.jpg is hosted fine back to a browser.  File.pdf, 
in the same location, is not hosted back to the browser find.  Is that what 
you are experiencing?  Sounds like tomcat is configured to execute pdf 
documents as opposed to hosting them.  Much like you would configure a web 
server to execute streaming video as opposed to just hosting a video to be 
downloaded.  I do not know where this configuration is done in Tomcat, but 
that is where I would start.
-Jay
At 06:04 AM 5/4/2005, you wrote:
Hi all,

Iam trying to call a link to a new window and that's calling a pdf
document thats somewhere in my folder under webapps. The problem is 
that the pdf is not shown. If i try it with an image it will be 
displayed correctly. I am using Tomcat 5.5.

Maarten
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 3-5-2005


-
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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:4278d3bc82251395011244!


-
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]