Java
  Home arrow Java arrow Using Sun Java Studio Creator with SVG
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

Using Sun Java Studio Creator with SVG
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2007-03-05

    Table of Contents:
  • Using Sun Java Studio Creator with SVG
  • Adding a JSP or HTML page
  • SVG files used in this tutorial
  • Embedding into a JSP page

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using Sun Java Studio Creator with SVG


    (Page 1 of 4 )

    Scalable Vector Graphics is a language that will help make Rich Internet Client Applications a reality. This article will show you how to embed SVG files in JSP using Sun Java Studio Creator.

    Introduction

    The buzz phrase on the Internet is Rich Internet Client Applications, with the client, not the web server, in the driver's seat. The client will take on much of the presentation, data processing and state management roles similar to the way the client applications take over in a client/server architecture. This makes servers happier with less to perform.

    AJAX was one of the constructs that helped in this development. JavaScript, which plays a major role in AJAX, is entering a new era of development with XML enhancements, JSON, and JavaScript-based toolkits such as Dojo. These developments, with added support from SVG for multiple fonts and scalable graphics, will make Rich Internet Applications a reality. Scalable Vector Graphics, an XML based language for graphics, is a W3C standard that is now supported by most browsers, including IE 7.0 (with a plug-in). This tutorial looks at embedding SVG graphic files in JSP using Sun Java Studio Creator.

    Using Sun Java Studio Creator IDE for embedding SVG files

    Sun Java Studio Creator did not support SVG files in its earlier version; most browsers did not even support SVG at that time. Things have changed and some browsers natively support SVG.  Even in the present version, Sun Java Studio Creator does not easily support adding files with the SVG extension. However, it is possible to use the IDE to bring in an SVG file and embed it in an HTML file or a JSP file. This tutorial shows how you can bring an SVG file into the IDE and properly reference the embedded file.

    Creating a web application project

    The first step is to create a web application project. File-->New Project will give access to the window shown next, where you would create a JSF web application. Highlight Web in the categories area and click the Next button.

    Clicking the Next button in the above window will open the following window, where you provide a name for the project. Here it is named DisplaySvg. The project file and folder location are added by default, but you can place them at another location of your choice.

    You open a window where you can create a new JSF web application project. In this tutorial a project called DisplaySvg was created.

    When you click Finish a complete project with all the necessary files, folders, and so on will be created for you, except for the JSP or HTML pages you will be creating.

    More Java Articles
    More By Jayaram Krishnaswamy


       · SVG is really cool when it comes to web graphics. You may want to check out this...
       · I was looking for such a component to be able to embed SVG graphics in afaces page...
       · Thanks for the article. I am quite excited about it. I use inkscape which saves...
     

    JAVA ARTICLES

    - Deploying Multiple Java Applets as One
    - Deploying Java Applets
    - Understanding Deployment Frameworks
    - Database Programming in Java Using JDBC
    - Extension Interfaces and SAX
    - Entities, Handlers and SAX
    - Advanced SAX
    - Conversions and Java Print Streams
    - Formatters and Java Print Streams
    - Java Print Streams
    - Wildcards, Arrays, and Generics in Java
    - Wildcards and Generic Methods in Java
    - Finishing the Project: Java Web Development ...
    - Generics and Limitations in Java
    - Getting Started with Java Web Development in...






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT