Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-2008, 03:38 AM
Member
 
Join Date: Jul 2008
Posts: 12
scotter59 is on a distinguished road
Viewing XML using Default Browser - Java's "Desktop" API
I am using Java's "Desktop" API to open the default browser to view an XML file. The file has an associated "XSL" so with some browsers, IE and Firefox, it would be rendered with HTML formatting. This works in Windows 2000 and up until recently it worked in Linux on KDE 3.x. Now however it only opens up Konqueror browser, which does not render the "XML/XSL". I have gone into the "KDE Configure", "Component Chooser", "Web Browser" changed the "Default Component" to Firefox (mozillafirefox). "File Associations", "text", "html" and "xml" putting Firefox at the top of the list, still Konqueror browser displays the XML file, not Firefox. If the KDE user clicks on the XML file in the Konqueror File Manager the default browser is Firefox and the XML/XSL is rendered and displayed.

KDE version: 3.5.8 "release 22.3"
Release: 2.6.18.8-0.1-default

Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Linux version 2.6.18.8-0.1-default running on i386; UTF-8; en_US (nb)

Tested using the code from the following example (add the link protocol):
xxxxx://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/]Using the Desktop API in Java SE 6

Results:
Windows 2000 - works opening using default browser IE
Linux/KDE - does NOT work Opens the XML using Konqueror (default is Firefox) and without the rendering ?

Is there some other "Desktop" setting that needs to be configured ?

I have a sample XML and XSL file I used to test with the code above - this site will not allow links to be entered.
----------------------------------------------
simple.xml
----------------------------------------------
----------------------------------------------
simple2a.xsl
----------------------------------------------
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-17-2008, 12:18 AM
Member
 
Join Date: Jul 2008
Posts: 12
scotter59 is on a distinguished road
Code example replace the "xxxxx" with "http"
xxxxx://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/

Interesting:
  • I have a unique feature (Java / KDE / Linux) that results in it always defaulting to the Konqueror Browser ?
  • No one else has tried to render an XML / XSL in the default browser using the Desktop API ?
  • ?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

vB 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
<core:forEach var="" begin="+<%=j%>+">??? freddieMaize JavaServer Pages (JSP) and JSTL 1 09-27-2008 02:20 AM
[SOLVED] Exception in thread &quot;main&quot; java.util.NoSuchElementException thevoice New To Java 5 05-14-2008 02:43 PM
"Jumble" or "Scramble" Program Shadow22202 Java Applets 8 04-30-2008 04:42 AM
Hwlp with "Open", "Save", "Save as..." trill New To Java 1 07-31-2007 08:53 AM
Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException romina New To Java 1 07-25-2007 11:55 PM


All times are GMT +3. The time now is 11:59 AM.


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