Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-2009, 05:19 AM
Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
praveenkumar14 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 10-12-2009, 09:41 AM
Senior Member
 
Join Date: Aug 2009
Posts: 1,895
Rep Power: 2
r035198x is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 10-12-2009, 12:18 PM
Member
 
Join Date: Oct 2009
Posts: 2
Rep Power: 0
praveenkumar14 is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open an internet Window loa41 New To Java 3 07-30-2009 06:20 AM
My first post, how to open 2nd window? Grom NetBeans 6 08-17-2008 04:00 AM
How to close an open JFrame window from a jsp page? kasisaiganesh JavaServer Pages (JSP) and JSTL 1 05-27-2008 07:29 PM
Open Resource Window JavaForums Java Blogs 0 05-15-2008 10:20 AM
Drive letter sniff/open explorer window iiz New To Java 1 04-04-2008 04:50 AM


All times are GMT +2. The time now is 05:15 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org