Java
  Home arrow Java arrow Page 3 - JSP Consumer for a Visual Studio Created W...
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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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

JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-10-03

    Table of Contents:
  • JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator
  • Test the Web Service In-situ
  • Creating the JSP Client with Java Studio Creator 2
  • Referencing the Web Service in Java Studio Creator 2
  • JSP Client Returning Result from the Web Service
  • The Completed Java Code

  • 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


    JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator - Creating the JSP Client with Java Studio Creator 2


    (Page 3 of 6 )

    Java Studio Creator 2 IDE Overview

    Click on the shortcut on the desktop to start the Sun Java Studio Creator 2 IDE which opens up as shown.
     

    You can create a project from File-->New Project which opens up the following window.

    Choose to create a web project. Make sure you read the description of this category of project. Click on the Next button.

    This will open up the New JSF WebApplication with the default project name WebApplication1. This has been changed to Test for this tutorial.

    JSF, short for Java Server Faces, is a Java server side technology based on a standard specification for building rich web applications. This is a better and recommended way of building web applications; better, in fact, than just using HTML or Java Server Pages. Sun Java Studio Creator and several other vendors support the JSF; that includes Borland JBuilder, IBM Web Sphere and Oracle JDeveloper. This Model-View-Controller (MVC) architecture runs on top of JSP and Servlets. For more details browse the ASPFree site, the Sun site and others on the Internet.

    When you click on the button labeled Finish you will have created the framework for a JSF web application with all the necessary elements as shown. In what follows, only the features required by this tutorial will be discussed. In the web pages folder there will be a Page1.jsp which has been renamed TestHello.jsp. JSP, short for Java Server Pages, are the equivalent of Active Server Pages or Active Server Pages.Net in the Java world. They are files that are processed on the server. Just as you can drag and drop controls on ASP, you can drag and drop controls on the JSP.

    The next picture shows the details of a Page1.jsp page. It has several tabbed pages for design, JSP and Java.

    On the design page which is in view,  you may drag components from the Palette which is the equivalent of Toolbox in Microsoft IDEs.

    The JSP tabbed page shows the JSP file, an XML file with JSP specific tags. Notice the structure of this file and the specific namespaces used.

    The web application will be bundled as a package which shows the Java coding of this package as shown.

    This next window shows the Servers used by the web application. This window can also be used for adding data sources, web services, and so on. This window will be used in the tutorial. It has items to take care of databases, web services, and Enterprise Java Beans.

    More Java Articles
    More By Jayaram Krishnaswamy


       · The last time I did not succeed, thanks to the refurbished, enhanced, Java Studio...
     

    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-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek