Home arrow Java arrow Page 3 - Developing Web Applications using Java Studio Creator
JAVA

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.”

Author Info:
By: Jagadish Chaterjee
Rating: 4 stars4 stars4 stars4 stars4 stars / 12
January 09, 2007
TABLE OF CONTENTS:
  1. · Developing Web Applications using Java Studio Creator
  2. · Creating a Web Application using Sun Java Studio Creator: creating the project
  3. · Creating a Web Application using Sun Java Studio Creator: designing the web page
  4. · Creating a Web Application using Sun Java Studio Creator: coding the button
  5. · Creating a Web Application using Sun Java Studio Creator: executing the application

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Developing Web Applications using Java Studio Creator - Creating a Web Application using Sun Java Studio Creator: designing the web page
(Page 3 of 5 )

Once you have completed all the steps in the previous section, it is time to design the web page.  Go through the following steps to achieve the same:

  • Using the "palette" tool window, drag a "label" from "basic" components onto the page.
  • Once "label1" is selected, you will see all of its attributes/characteristics in the "properties" tool window. Using the "properties" window modify the following properties with the respective values given:

Id: modify the existing id "label1" to "lblMsg"

Text: remove all information here

Style: you can hit the "ellipsis" button (a button with three dots) and modify the appearance of the label

  • Again using the "palette" tool window, drag a "button" from "basic" components onto the page
  • Once "button1" is selected, change its "text" property to "Show" and "ID" property to "btnShow."  You can also adjust the width and height of the button visually.

At this point, when you switch to "JSP" mode, you should be able to see all the JSF (Java Server Faces) related tags as follows:

<?xml version="1.0" encoding="UTF-8"?> <jsp:root version="1.2"xmlns:f=http://java.sun.com/jsf/core
xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">     <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>     <f:view>         <ui:page binding="#{Page1.page1}" id="page1">             <ui:html binding="#{Page1.html1}" id="html1">                 <ui:head binding="#{Page1.head1}" id="head1">                     <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>                 </ui:head>                 <ui:body binding="#{Page1.body1}" id="body1"
style="-rave-layout: grid">                     <ui:form binding="#{Page1.form1}" id="form1">                         <ui:button action="#{Page1.btnShow_action}" binding="#{Page1.btnShow1}" id="btnShow1"                             style="left: 23px; top: 48px;position: absolute; width: 71px" text="Show"/>                         <ui:label binding="#{Page1.lblMsg}" id="lblMsg" style="left: 24px; top: 24px; position: absolute"/>                     </ui:form>                 </ui:body>             </ui:html>         </ui:page>     </f:view> </jsp:root>

You can observe that we are not simply developing the traditional JSP applications. Instead, we are now working with advanced JSP controls together with JSP using Sun Java Studio Creator!


blog comments powered by Disqus
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...

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



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