Home arrow Java arrow JSP Basics with Java Studio Creator 2 for VB Programmers
JAVA

JSP Basics with Java Studio Creator 2 for VB Programmers


If you have been looking for a place to start with Java Server Pages, you've found it here. This article will give you some hands-on experience in using the Java Studio Creator 2 IDE to create Java Server Pages.

Author Info:
By: Jayaram Krishnaswamy
Rating: 5 stars5 stars5 stars5 stars5 stars / 4
September 25, 2006
TABLE OF CONTENTS:
  1. · JSP Basics with Java Studio Creator 2 for VB Programmers
  2. · The Palette window and more
  3. · Creating a simple JSP page
  4. · Adding basic components to the page
  5. · Test the page

print this article
SEARCH DEVARTICLES

JSP Basics with Java Studio Creator 2 for VB Programmers
(Page 1 of 5 )

Introduction

Active Server Pages by Microsoft was a great success because developers were looking for a server side processing program that was better than CGI scripts, the only way programs were processed on servers at that time. Java Server Pages was Sun Microsystems' answer to ASP based on the Java Programming Language. This is part of the history and today both of them find their place in web space.

Both are script based and provide similar functionality. They do have commonalities in syntax and objects. JSP supports tags that abstract functionality that can be dropped onto a page, making separation of content and code a lot easier and cleaner. Tags are easier to handle than spaghetti code. Of course ASP is platform-specific, being a Microsoft product, and JSPs work with lot more platforms.

The object of this tutorial is however to use the Java Studio Creator 2 IDE to get a basic understanding of how to create Java Server Pages and get hands-on experience in using this tool. The tutorial also shows how to add images and links using JavaScript.

Overview of the main windows of the IDE

It is essential to move around easily in the IDE, to find things for the effective use of any user interface. This section describes the basic features.

Click on the Sun Java Studio Creator 2 desktop shortcut created when the program was installed. This opens up the following window.

The Welcome window is where you can open your listed, recent projects or open an existing project by browsing in the directory C:/My Documents/Creator/Projects. Of course you may also create a new project from here. More on this will be discussed later in the tutorial. While on this central page, scroll down and you will see links to tutorials and samples on the web.

The Projects window shows all the projects, the same ones you see in the Welcome window, but here you may look at the sub directories and files. As shown, the project Test has been expanded to show the typical structure of a project. For example the Test project has three Java server pages, TestDup.jsp, TestHello.jsp, and Verify.jsp. The one that has the green arrowhead is the page that comes up when the project is run. If you right click any other page, you can make it the start page for the project as shown. The structure of the project gives you all the ability required in an enterprise-quality application, from page creation to delivery and documentation.


blog comments powered by Disqus
JAVA ARTICLES

- Java Too Insecure, Says Microsoft Researcher
- Google Beats Oracle in Java Ruling
- 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 ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials