I guess that you're using JRun (or some web server) behind IIS to support
servlets.

 1. Check if SSL enabled or not:

 Assume that your web application name is "mywebapp". Create a normal HTML
page *in you web application* (don't put it in other directories)  and try
to open it from IE (e.g. https://localhost/mywebapp/test.html). If you
cannot open it, the problem is because of server configuration.

 2. Check if servlet works OK

 If you can open the HTML page, try to open your servlet (e.g.
https://localhost/mywebapp/mypdfgenservlet) directly from IE (remember to
uncheck "Show friendly HTTP error messages" of IE). Try to understand the
error message to resolve it.

 Regards,
 Thai


-----Original Message-----
From: Murphy, Todd [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 8:30 PM
To: [EMAIL PROTECTED]
Subject: Re: problem creating a PDF using https


Thanks for your suggestions.  We are successfully using SSL in all other
aspects of the site, we only run into the problem when trying to access the
pdf.  The web server used is IIS.

Todd

-----Original Message-----
From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 9:42 PM
Subject: Re: problem creating a PDF using https


You must enable HTTPS function of the web server.

your browser------(HTTP, default port 80)  --->|Web server
           |------(HTTPS, default port 443)--->|

You din't enable this HTTPS function. That's why the bowser returns the
error messages (site cannot be found). Imagine that you have a house (web
site) with two doors (HTTP & HTTPS)
If you don't open the HTTPS door, no one can get in your house (through
HTTPS door) to get anything. (Althought they can get into your house through
HTTP door)

-----Original Message-----
From: Murphy, Todd [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 9:32 AM
To: [EMAIL PROTECTED]
Subject: problem creating a PDF using https


Greetings,

I'm seeing an issue when using https that I'm hoping for some advice on.  I
have a servlet that returns content to the browser window (IE5.5) in PDF
format.  This works great using http, but fails with the following message
when I switch to SSL:

Internet Explorer cannot download <filename> from server.
Internet Explorer was not able to open this Internet site.  The requested
site is either unavailable or cannot be found.


pDFList = (pDFList) custExtension.getInvoiceDetailPrint( invoiceNumber );

ServletOutputStream sout = response.getOutputStream();
response.setContentType( "application/pdf" );
response.setHeader( "Content-disposition", "inline; filename = example.pdf"
);
BufferedOutputStream bos = null;
bos = new BufferedOutputStream( sout );
for ( int i=0; i<pDFList.size(); i++ )
   {
   bos.write( pDFList.get( i );
   }
if ( bos != null )
   {
   bos.flush();
   bos.close();
   }

In the servlet snippet above, pDFList contains an ArrayList of lines in the
PDF.  Can anyone provide insight into what I may need to get this to work
within https?

Thanks!
Todd Murphy
Hershey Foods Corporation

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to