Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Default window.open problem

    Hi everyone,
    Iam using netbeans6.5. I tried to open a .xls file in new window. My project deployed to Glass fish server. when the below code executed the file is not opened. Do i need to change any server security settings? please suggest me.

    my code is
    window.open("c:\\TEST\\test.xls");

    thanks in advance.
    Kumar.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    That is Javascript isn't it? Better run a file servlet and let the user's browser decide what to do with the file.

  3. #3
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Default window.open problem

    Hi,
    Actually my requirement is to open a .xls file from file system.Iam using javascript to open the file but some problem when iam using Glassfish server.

    thanks
    Kumar

Similar Threads

  1. how to open an internet Window
    By loa41 in forum New To Java
    Replies: 3
    Last Post: 07-30-2009, 06:20 AM
  2. My first post, how to open 2nd window?
    By Grom in forum NetBeans
    Replies: 6
    Last Post: 08-17-2008, 04:00 AM
  3. How to close an open JFrame window from a jsp page?
    By kasisaiganesh in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 05-27-2008, 07:29 PM
  4. Drive letter sniff/open explorer window
    By iiz in forum New To Java
    Replies: 1
    Last Post: 04-04-2008, 04:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •