Netscape Browser Forcing Download Prompt with .jsp

My apologies in advance if this topic has already been covered. Here is the behavior I've come across and can't resolve:
When a user with an IE browser visits my site (i.e. http://www.mysite.com), the default page is loaded - no problems. With Netscape, the user is prompted to download. However, if the Netscape user types the full path to the default file (i.e. http://www.mysite.com/index_new.jsp) there is no problem.
This would lead me to think there is a problem with my deployment - but I can't solve it.
I'm using Tomcat 3.2.1 with the isapi filter. In the server.xml, I've set up a context to my server's root:
<Context path="/"
docBase="d:\root"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
In my web.xml file in d:\root\web-inf I've defined a <welcome-file>. Under IIS I also have a default page for the web root.
Does anyone have any ideas?
Thanks - David

Sorry, to clarify the default file is index_new.jsp - the underscore was lost when it was underlined.
David

Similar Messages

  • How do I save browser and download history with timestamps?

    I want to be able to have access to and be able to export all my browser and download history on Firefox with timestamps. From the looks of it, Firefox doesn't place permanent time-stamps on browser history, and begins removing download data from the main download window after it reaches a certain volume. I'm mainly interested in knowing whether I can retrieve and export history and/or download data which is months old for forensic reasons. Basically, I just want to have a day-by-day breakdown of the sites I visited over the last year on Firefox instead of a month-by-month one and '6 months or older' pile.
    It would be nice if someone could clarify whether or not Firefox supports or can be made to support any of this, and if months-old browser history still has original time data associated with it that I can use to categorize it day-by-day.

    You can open the downloads.sqlite file in a program or extension that can handle SQLite database files.
    * SQLite Manager: https://addons.mozilla.org/firefox/addon/sqlite-manager/
    # Open Profile Directory -> XXX.sqlite -> Go
    # Hit the Execute SQL tab
    # Use a Select like this:
    <pre><nowiki>SELECT datetime(startTime/1000000,'unixepoch') AS startTime,name,source AS url,target,currBytes AS bytes,((endTime-startTime)/1e6) AS time,currBytes/((endTime-startTime)/1e6) AS speed,mimeType
    FROM moz_downloads
    ORDER By startTime DESC
    </nowiki></pre>
    If you need more (or less) data then add open the XXX table to see the names of the available columns and add them to (or remove them from) the SELECT line separated by commas.

  • Set headers with jsp

    hi,
    i try to make a download page with jsp. here is my code:
    <%@ page import="java.io.*,javax.servlet.*,java.util.* "%>
    <%          
    String filename = "super.zip";
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition","attachment; filename=\""+filename+"\"");
    response.setHeader("Pragma","Public");
    //is it correct to set headers like this
           FileInputStream fis = null;
           BufferedInputStream bis = null;
           ByteArrayOutputStream baos = null;
           int aux;     
           try
                     File f = new File("c:\\" + filename);
                     fis = new FileInputStream(f);
                     bis = new BufferedInputStream(fis);
                     baos = new ByteArrayOutputStream();
                   while ((aux = bis.read())!=-1)
                        baos.write((byte)aux);
                   baos.writeTo(response.getOutputStream()); //is it correct to return the content to browser like this     
           finally
                   if (bis != null)
                        bis.close();     
    %>and the error i get is
    getOutputStream() has already been called for this response
    i need immediate help. i hope someone knows the answer. thanks...

    Hi,
    I had the same problem yesterday then I found the answer here:
    http://forum.java.sun.com/thread.jsp?forum=45&thread=373667
    The issue is that you can not have PrintWriter and OutputStream at
    the same time.
    Rachel

  • Send image to browser with cfcontent not download prompt

    I'm sending an image to be downloaded using cfcontent
    <cfheader name="Content-disposition" value="attachment;filename=#getit.file#">
    <cfcontent type="image/jpg" file="#physicalpath#\#getit.file#">
    Can I have the image sent to the browser instead of a download prompt?

    If the image isn't accessible directly via HTTP, you can use CF to serve it. Your CF page would have the CFCONTENT tag as you showed in your original post, then you'd use IMG tags in other pages pointing to that CF page:
    <img src="myimage.cfm?id=whatever"/>
    You wouldn't need the CFHEADER to specify it as an attachment, though - that's only for when you want to prompt the user to download a file without having it handled natively by the browser.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • Converting an html file with jsp contents to a text file for download

    Hi guys,
    I'm currently having troubles with downloading a .jsp file to a doc file.
    The thing is i am able to download the desired file and make it as a .doc but when i open it with ms word 2007 i can only see the content of the html. The dynamic content generated from the database and reflected on the .jsp page that i suppose to download and convert to .doc file doesn't show.. I hope someone could help me... My servlet code is this:
    public class FileDownload extends HttpServlet
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    try
    String originalFileName="localhost:8080//Appsdev//reportresults1.jsp";
    File f=new File(originalFileName);
    System.out.println("THE 1st f:"+f);
              response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename=tryreport.doc;");
    response.setHeader("Cache-Control", "max-age=0");
    byte[] buf = new byte[1024];
    FileInputStream inStream = new FileInputStream(f);
    OutputStream outStream = response.getOutputStream();
    int sizeRead = 0;
    int size = 0;
    while ((sizeRead = inStream.read(buf, 0, buf.length)) != -1)
    outStream.write(buf, 0, sizeRead);
    size += sizeRead;
    inStream.close();
    outStream.close();
    catch(Exception e)
    e.printStackTrace();
    }

    Hi BalusC,
    sorry for the double post i'm newly registered and it's my first post before i was just reading other's threads.
    well last night while i was reading and researching for a solution a came across this.
    <%@ page language="java" contentType="application/msword"%> naturally for my other jsp pages, the contentType is text/html so when the page loads it display in the browser. But with application/msword when i direct the page to the jsp page that i want to download and set the contentType with that...it prompts a window like when you're downloading the one with the <open with and save as>. It works fine to, i was able to see the report that i have to download and it is formatted very much like what i am seeing on the browser. My only concern now is the file i am able to download is a .jsp file how could i change that to a .doc file and be able to see the same content like the one with the .jsp file that i have right now.... any help or examples would be greatly appreciated. I didn't use the servlet anymore because even though i am able to download there is no content the html parts only but iam able to change the extension for the file...thanks again! ^ ^

  • I downloaded Adobe Acrobat XI Pro - I signed in and now all I get is the Adobe Download Assistant with a prompt to keep downloading the program or help page.

    I downloaded Adobe Acrobat XI Pro - I signed in and now all I get is the Adobe Download Assistant with a prompt to keep downloading the program or help page. How can I launch the actual program and not the Assistant?
    Under the download or application file I only have the Assistant program

    Moving this discussion to the Acrobat Installation & Update Issues forum.
    Isabellasf have you ran the installation files which were downloaded?  By default they are downloaded to the download folder within your User folder.

  • I am using a PC and when I try to download an ebook, I get a pop up prompt with the message `Error! Check Activation` - how to resolve this so I can download and view the ebook, thank you

    I am using a PC and when I try to download an ebook, I get a pop up prompt with the message `Error! Check Activation` - how to resolve this so I can download and view the ebook, thank you

    Hi Ablondel24,
    I understand that you are getting a 404 message when you access a website from a Mac, not a PC.
    First check the cache for the site:
    Reload the webpage while bypassing the cache using '''one''' of the following steps:
    *Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
    OR
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    Second try to [[Delete cookies to remove the information websites have stored on your computer]]
    Let us know if this solves the issues you are having.

  • When am trying to download acrobot standard its prompting with user login password and its not getting downloaded.

    Hi
    When am trying to download acrobot standard its prompting with user login password and its not getting downloaded.

    When you (or someone) first switched on your computer, you (or someone) had to choose a password. This protects your computer, and you need it to install most software or change the system. We can't help you if you forget it, sorry.

  • Spawning new browser windows with jsp

    in a webapp, is there a jsp way to open a new browser window? i'd like to avoid javascript if i can....

    Definetely not. JSP is 100% server-side, it has nothing to do with the client-side (browser). You cannot do anything in the client-side with JSP.
    You will have to use either HTML or JavaScript.
    A seven-second Google-lookup with the keywords "opening new browser windows" yields as a second link:
    Dan's Web Tips: Opening New Browser Windows
    http://webtips.dantobias.com/new-window.html

  • Hi everyone, not sure if this is the right forum to ask this question, however any redirect is appreciated. Where can I get the download for the latest old mozilla browser. The one with the dinosaur icon before the browser turned firefox. Thanks, Jen

    Hi everyone
    Not sure if this is the right forum to ask this question, however any redirect is appreciated. Where can I get the download for the latest old mozilla browser. The one with the dinosaur icon before the browser turned firefox. Thanks, Jen

    Phoenix and Firebird were what Firefox was called before Firefox was settled on in 2004, and both used "birds" as the logo. IIRC, the dinosaur was used in the Mozilla Suite.
    Here are the earliest versions of the Mozilla Suite. <br />
    http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/
    I hope this request for a historical purposes of where Mozilla came from, because those old versions aren't safe to use on the internet any longer.

  • Whenever i download a plugin, im always prompted with an error message

    whenever i download a plug-in, im always prompted with an error message and so the download fails

    Gee I don't know it couldn't be your 10 updates behind could it.
    You should be on version 3.6.22 not 3.6.12.

  • Trying to download itunes onto new PC from browser, it comes up with thanks for downloading but it is not !

    Trying to download itunes onto new PC from browser, it comes up with thanks for downloading but it is not !

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • How to force the Netscape browser to use Java Plug-in 1.3.0_02?

    For Analyzer 6.2.1, how to force the Netscape browser to use Java Plug-in 1.3.0_02?

    Change the classid in the object tag here is some info.This applies to JRE's 1.3.1 and greater.How do I know what Class ID to use for a specific JRE?CAFEEFAC-0013-0001-0004-ABCDEFFEDCBACAFEEFAC = This tells the browser to force a specific JRE0013-0001-0004 = JRE version number 1.3.1_04 (1.3.1_08 would be 0013-0001-0008)ABCDEFFEDCBA = Just needs to be there.1.3.0_02 = E19F9331-3110-11d4-991C-005004D3B3DB, it seems like they did not implement the standard until v.1.3.1Any good JRE Version = 8AD9C840-044E-11D1-B3E9-00805F499D93, this class id will just look for any good JRE.http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/version.html

  • Determening type of the browser with JSP

    Is there a way to determine type and version of the browser with JSP?
    I need to determine if the borowser is IE 5.5 or IE 6.0
    Thanks

    String fileName ="c:/test1.pdf";
      File file = new File(fileName);
       if(!file.exists())
         return;
      // If JSP
      String mimeType = application.getMimeType(fileName);
           If you are using servlet
           String mimeType = this.getServletContext().getMimeType(fileName);
         response.setContentType(mimeType);  
         response.setHeader("Content-Disposition","inline;filename=\\"+fileName+"\\");
      BufferedOutputStream out1 = null;
      InputStream in = null;
      if(mimeType == null)
         mimeType = "application/octet-stream";
      try{
         in = new FileInputStream(f);
         response.setContentLength(in.available());
         BufferedOutputStream out1 = new BufferedOutputStream(response.getOutputStream(),1024);
         int size = 0;
         byte[] b = new byte[1024];
         while ((size = in.read(b, 0, 1024)) > 0)
            out1.write(b, 0, size);
      }catch(Exception exp){
      }finally{
          if(out1 != null){
             try{
                out1.flush();               
                out1.close();
             }catch(Exception e){}
          if(in != null){
            try{in.close();}catch(Exception e){}
      } this is what either your JSP/SERVLET/Backing Bean is supposed to do.
    please try to restructure your code as per it.
    Hope that might help :)
    REGARDS,
    RaHuL

  • Exe file not working with forced download script.

    I have a captivate file that I exported as an exe file for
    pc. It works fine when I download it from the server using the
    direct URL to the file but I don;t want people to actually see
    where it is located so I have a used a force-download php script.
    When I download it by way of the script... it downloads, but the
    file won't play. All I get is a DOS window pop up and then goes
    away. Same file...any ideas?
    The php file I'm using to force the download is below...
    <?php
    $filename = $_GET['file'];
    // required for IE, otherwise Content-disposition is ignored
    if(ini_get('zlib.output_compression'))
    ini_set('zlib.output_compression', 'Off');
    // addition by Jorg Weske
    $file_extension =
    strtolower(substr(strrchr($filename,"."),1));
    if( $filename == "" )
    echo "<html><title>Download
    Error</title><body>ERROR: download file NOT SPECIFIED.
    USE force-download.php?file=filepath</body></html>";
    exit;
    } elseif ( ! file_exists( $filename ) )
    echo "<html><title>Download
    Error</title><body>ERROR: File not found. USE
    force-download.php?file=filepath</body></html>";
    exit;
    switch( $file_extension )
    case "pdf": $ctype="application/pdf"; break;
    case "exe": $ctype="application/octet-stream"; break;
    case "zip": $ctype="application/x-compressed"; break;
    case "swf": $ctype="application/x-shockwave-flash"; break;
    case "doc": $ctype="application/msword"; break;
    case "xls": $ctype="application/vnd.ms-excel"; break;
    case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
    case "gif": $ctype="image/gif"; break;
    case "png": $ctype="image/png"; break;
    case "jpeg":
    case "jpg": $ctype="image/jpg"; break;
    default: $ctype="application/force-download";
    header("Pragma: public"); // required
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0,
    pre-check=0");
    header("Cache-Control: private",false); // required for
    certain browsers
    header("Content-Type: $ctype");
    // change, added quotes to allow spaces in filenames, by
    Rajkumar Singh
    header("Content-Disposition: attachment;
    filename=\"".basename($filename)."\";" );
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ".filesize($filename));
    readfile("$filename");
    exit();
    ?>

    Actually...never mind. This script creates a HUGE security
    risk....

Maybe you are looking for