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: executing the application (Page 5 of 5 )
Once you have completed all the steps in all of the previous sections, it is now time to execute and test our application.
You can execute the application by clicking on the "Run main project" button on the toolbar or by hitting Ctrl + F5. It takes a while to view the output the first time you hit run, as it does a lot of things behind the screen
Once you execute the project, it automatically starts the "Sun Java System Application Server" (if is has not started before). Once the application server is started, you can already watch it in the system tray, and then your application gets deployed into that application server automatically. The entire process gets done during the following dialog box.
Once the deployment is done, it opens the web application using a browser (and it is IE in this case), and it displays our page. You can hit the "show" button and it should return the message "Hello World!" in the label as shown in the following figure.
That's it. You can close your browser, go back to your IDE environment, modify the code and again execute the same any number of times.
How to view and manage the deployed Java web applications
All the Java web applications developed using Java Studio Creator shall be deployed using "Sun Java System Application Server" by default.
If you wanted to have a look at that application server, you can go to programs -> Sun Microsystems -> Sun Java Studio Creator 2 Update 1 -> Admin Console. Once you hit it, you will be asked to log in to manage the application server. If it is the first time you installed it (along with Java Studio Creator), the user name should be "admin" and the password should be "adminadmin."
Once you log into the application server, you will see several options on the screen. At this point, we are just focusing on developing web applications. So, once you hit "Web Applications" in the "Applications" tree available in the left side pane, it will list all the web applications deployed on the server (few are by default) as shown in the following figure.
From there, you can completely manage any web application with the most used administrative tasks such as deploying, undeploying (or removing), enabling, disabling, launching (or testing) web applications, and so forth.
I shall contribute more tutorials using Java Studio Creator in my upcoming articles. Do not forget to check back frequently or simply sign up for a newsletter to get notified automatically.
I hope you enjoyed the article and any comments, suggestions, feedback, bugs, errors, enhancements are highly appreciated at http://jagchat.spaces.live.com
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.