Developing Web Applications using Java Studio Creator
This is the first article in a series focusing on developing web applications using Sun Java Studio Creator. This is mainly aimed at the beginners who are very new to web application development using “Sun Java Studio Creator IDE” and “Sun Java System Application Server.”
Developing Web Applications using Java Studio Creator - Creating a Web Application using Sun Java Studio Creator: creating the project (Page 2 of 5 )
Let us develop a "Hello World!" application. Go through the following steps to achieve the same:
Open Programs -> Sun Microsystems -> Sun Java Studio Creator 2 Update 1 -> Sun Java Studio Creator.
Open File menu -> New Project.
Within the "New Project" dialog box, select "web" in "categories," select "JSF Web Application" in "Projects" and finally click "Next" (as shown here).
Now you will be provided with a "New JSF Web Application" dialog box. Specify your own project name and project location. In this case, I provided "SampleJavaApp" as the project name and "desktop" as the location. Finally click "Finish" (as shown here).
Once you click "Finish," it creates and opens a new project with the same name you used earlier. At this moment, the environment looks very confusing with several tool windows, options, areas, toolbars and so on. The following are the most used tool windows when you develop basic Java web applications:
Projects
Palette
Properties
Outline
Navigator
If you could not identify any of those tool windows, you can make them available through the "View" menu. It would also be helpful to have the following tool windows for certain scenarios:
Servers
Files
To do
All the tool windows can be closed, opened, minimized or restored according to your needs. Apart from all of the above, you will be provided with a big area with a tab titled "Page1." That is where we will be designing and working with JSP. You can add as many JSP pages as permitted and manage all of them using the "Projects" tool window.
Every JSP page is provided with three views (or modes), namely Design, JSP and Java. In the "design" mode, we can drag and drop any of the components/tools (or web controls) from the "palette" (similar to "toolbox" in Visual Studio) tool window and design the JSP web page according to our requirements. It is something like a WYSIWYG scenario. Based on the components you drag and drop onto the JSP page, the respective tags get automatically modified in the background in "JSP" mode. If you need to work with any custom event code (events like button clicks and others), you can switch to "Java" mode and program it.
At this point, try to play around with tool windows, toolbars, dragging tools onto the page, changing their properties, previewing in browser, and so forth to make yourself comfortable with the environment.