|
Ashish, Im not sure how directory browsing comes into it as this code runs on the server. How does this code work? Your IFSFileInputStream object is called "file", But your getByteFromFile methods is using an object called "is"? Cheers Colin.W -----Original Message----- From: Ashish Kulkarni [mailto:kulkarni_ash1312@xxxxxxxxx] Sent: 09 March 2004 15:04 To: Java Programming on and around the iSeries / AS400 Subject: RE: enable directory browsing in websphere Hi I am running a websphere on windows, and i have to display a pdf file from IFS on AS400, here is the code for it AS400 as400 = new AS400(ip, userId, password); IFSFileInputStream file = new IFSFileInputStream(as400, pathToPdf); response.setContentType("application/pdf"); byte[] content = getBytesFromFile(is); response.setContentLength(content.length); response.getOutputStream().write(content); as400.disconnectAllServices(); response.getOutputStream().flush(); This code works on Tomcat, but on websphere i get Internet Explorer error saying, error while downloading pdf from site, I have already set directoryBrowsingEnabled="true" in file ibm-web-ext.xmi on websphere Ashish --- Colin Williams <colin.williams@xxxxxxxxxxxx> wrote: > Ashish, which directory in the web application are > you trying to view? > > -----Original Message----- > From: Ashish Kulkarni > [mailto:kulkarni_ash1312@xxxxxxxxx] > Sent: 08 March 2004 23:01 > To: java400-l@xxxxxxxxxxxx > Subject: enable directory browsing in websphere > > > Hi, > I have installed a webapplication on websphere 5.0, > but i am not able to view the directory and pages > from > browser, how do i enable directory browsing for an > allready installed application on websphere 5.0 > or how can i set it to display only pdf files in > directory structure of web application > > > Ashish > > __________________________________ > Do you Yahoo!? > Yahoo! Search - Find what you're looking for faster > http://search.yahoo.com > _______________________________________________ > This is the Java Programming on and around the > iSeries / AS400 (JAVA400-L) > mailing list To post a message email: > JAVA400-L@xxxxxxxxxxxx To subscribe, > unsubscribe, or change list options, > visit: > http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/java400-l. > > > This e-mail has been sent by a company of Bertram > Group Ltd, whose registered office is The Nest, > Rosary Road Norwich NR1 1TF. > This message, and any attachments, are intended > solely for the addressee and may contain privileged > or confidential information. If you are not the > intended recipient, any disclosure, copying, > distribution or any action taken or omitted to be > taken in reliance on it, is prohibited and may be > unlawful. If you believe that you have received > this email in error, please contact the sender > immediately. Opinions, conclusions and statements of > intent in this e-mail are those of the sender and > will not bind a Bertram Group Ltd company unless > confirmed in writing by a director independently of > this message. > Although we have taken steps to ensure that this > email and any attachments are free from any virus, > we advise that in keeping with good computing > practice the recipient should ensure they are > actually virus free. > > _______________________________________________ > This is the Java Programming on and around the > iSeries / AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/java400-l. > ===== A$HI$H __________________________________ Do you Yahoo!? Yahoo! Search - Find what you're looking for faster http://search.yahoo.com _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l. This e-mail has been sent by a company of Bertram Group Ltd, whose registered office is The Nest, Rosary Road Norwich NR1 1TF. This message, and any attachments, are intended solely for the addressee and may contain privileged or confidential information. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please contact the sender immediately. Opinions, conclusions and statements of intent in this e-mail are those of the sender and will not bind a Bertram Group Ltd company unless confirmed in writing by a director independently of this message. Although we have taken steps to ensure that this email and any attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.