From jbosstools-commits at lists.jboss.org Thu Apr 30 09:14:30 2009
Content-Type: multipart/mixed; boundary="===============1149605901934143193=="
MIME-Version: 1.0
From: jbosstools-commits at lists.jboss.org
To: jbosstools-commits at lists.jboss.org
Subject: [jbosstools-commits] JBoss Tools SVN: r14977 - in
trunk/documentation/guides/GettingStartedGuide/en: modules and 1 other
directory.
Date: Thu, 30 Apr 2009 09:08:52 -0400
Message-ID:
--===============1149605901934143193==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: chukhutsina
Date: 2009-04-30 09:08:52 -0400 (Thu, 30 Apr 2009)
New Revision: 14977
Modified:
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/firs=
t_seam10.png
trunk/documentation/guides/GettingStartedGuide/en/modules/jsp_applicatio=
n.xml
trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_applic=
ation.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-652 - Code patterns in text .All t=
he code patterns were marked with the tag .The incorrect picture was =
modified.
Modified: trunk/documentation/guides/GettingStartedGuide/en/images/first_se=
am/first_seam10.png
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/jsp_app=
lication.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/documentation/guides/GettingStartedGuide/en/modules/jsp_applicati=
on.xml 2009-04-30 12:32:19 UTC (rev 14976)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/jsp_applicati=
on.xml 2009-04-30 13:08:52 UTC (rev 14977)
@@ -9,16 +9,16 @@
Developing a simple JSP web application
-
+ =
Note:We highly recommend developing in Seam. This =
chapter is for users
who for some reason cannot use Seam.
-
+ =
In this chapter you'll find out how to create a simple JSP application using=
the
- JBoss Developer Studio. The application will show =
a classic
+ url=3D"http://java.sun.com/products/jsp/">JSP application using =
the
+ JBoss Developer Studio. The application will show a=
classic
"Hello World!" on the page.We'll assume that you have already launched JBoss De=
veloper
Studio and also that the Web Development=
perspective is the
@@ -28,7 +28,7 @@
Window > Open Perspective > Other...
from the menu bar and then selecting Web Development from th=
e Select Perspective
dialog box.
-
+ =
Setting Up the Project
@@ -38,18 +38,18 @@
Go to the menu bar and select
- File > New > Other...
-
+ File > New > Other...
+
Select
- Web > Dynamic Web Project
- in the New Project dialog box
+ Web > Dynamic Web Project
+ in the New Project dialog box
Click
- Next
-
+ Next
+
@@ -57,10 +57,10 @@
Then select
- Minimal Configuration
- from the list of possible configurations and click
- Finish
-
+ Minimal Configuration
+ from the list of possible configurations and click
+ Finish
+
@@ -71,10 +71,10 @@
-
+ =
The
- jspHello
- node should appear in the upper-left Package Expl=
orer
+ jspHello
+ node should appear in the upper-left Package Explo=
rer
view.New Web Project
@@ -85,32 +85,32 @@
-
+ =
Creating JSP PageThis section covers all the points how to create, edit and then pr=
eview JSP page.In our simple application we need to create only one JSP page whic=
h displays a
- "Hello World!" message.
+ "Hello World!" message.
Right click WebContent > New >
- JSP.
+ JSP.
Type "hello.jsp" for a file name and click the
- Next
- button.
+ Next
+ button.
In the next window you can choose a template for your jsp page and=
see its preview.Select
- New JSP File (xhtml)
- template and click
- Finish
- button.
+ New JSP File (xhtml)
+ template and click
+ Finish
+ button.
@@ -128,19 +128,26 @@
Editing a JSP PageLet's now make a little change so that a jsp page displays
- "Hello World!" message.
+ "Hello World!" message.
- Insert this line inside the
- <body>
+
+
+ =
+ Insert this line inside the =
+ <body> </body>
+
+ tag:
+ ]]>
-
-
+
+ =
Notice that content assist functionality is always available when=
you are typing:Content Assist in JSP Page
@@ -151,8 +158,8 @@
After changes made your
- hello.jsp
- page should look like this:
+ hello.jsp
+ page should look like this:
Hello.jsp Page
@@ -161,21 +168,21 @@
-
+ =
This line will actually output "Hello
World!" message in the Console. T=
o make the
message displayed in the Browser, just replace this line with the simp=
le
- Hello World!.
+ Hello World!.
-
+ =
web.xml fileWhen you are creating web project the wizard creates the
- web.xml
- for you automatically. The web.xml file editor=
property>
+ web.xml
+ for you automatically. The web.xml file editor
provided by JBoss Developer Studio is available i=
n two modes:
- Tree and Source.
+ Tree and Source.
Web.xml in Design and Source Mode
@@ -186,18 +193,18 @@
Both modes are fully synchronized. Let's add mapping to our =
- hello.jsp
- page in
- web.xml
- file.
+ hello.jsp
+ page in
+ web.xml
+ file.
Switch to Source tab.
- Add the next code into
- <welcome-file-list>
- :
+ Add the next code into =
+ <welcome-file-list>
+ :hello.jsp
@@ -206,29 +213,29 @@
made are automatically reflected in that mode.
Actually you don't really need to do any configurations righ=
t now.
-
+ =
Deploying the projectWhile creating any web project you could experience a pain writin=
g ant scripts and
managing the packaging even when writing the most trivial web applicat=
ions. With
- JBoss Developer Studio you are saved from such a=
pain. All
+ JBoss Developer Studio you are saved from such a =
pain. All
you need is to start JBoss Server and launch your=
application
in your favorite browser.You can also create a war archive with JBDS's Archive Tools
+ url=3D"&aslink;#Project_archivesView">JBDS's Archive Tools
and export it to any web server.WAR ConfigProject archives managing is available through Project Archives view.=
+ url=3D"&aslink;#Project_archivesView">Project Archives view.<=
/para>
Select
- Window > Show view > Other > JBoss
- Tools > Project archives
- from menu bar
+ Window > Show view > Other > JBoss
+ Tools > Project archives
+ from menu bar
Select a project in Package Explorer you want to be archived=
para>
@@ -247,8 +254,8 @@
Click, for example,
- WAR
- option to create war archive
+ WAR
+ option to create war archiveIn the New WAR dialog you can see automatic=
ally selected
@@ -264,24 +271,24 @@
Click
- Next
- to see a stub archive configuration for your project: <=
figure>
- Stub Archive Configuration
-
-
-
-
-
-
+ Next
+ to see a stub archive configuration for your project:
+ Stub Archive Configuration
+
+
+
+
+
+
Click
- Finish. The
+ Finish. The
.war file will appear in Package
- Explorer and also in Project Archives
+ Explorer and also in Project Archives
view as structure tree: Archive is Created
@@ -316,19 +323,19 @@
-
+ =
Auto redeployWhen you are creating a web application and register it on JBoss
- Server it is automatically deployed into
+ Server it is automatically deployed into
/deploy directory of the server. JBDS comes with=
the
feature of auto-redeploy. It means that you don't need to restart
- JBoss Server. Any changes made in the applicati=
on in
+ JBoss Server. Any changes made in the applicatio=
n in
exploded format will trigger a redeployment on the server.
-
+ =
JSP Page Preview
@@ -339,8 +346,8 @@
Make a little change to
- hello.jsp
- page, e.g. put this code snippet:
+ hello.jsp
+ page, e.g. put this code snippet:
@@ -348,8 +355,8 @@
Click
- Save
- button.
+ Save
+ button.
Switch to Preview page by clicking Preview=
tab at the
@@ -357,20 +364,20 @@
+
+
+ -->
Launch JSP ProjectLet's now launch our project on server. We'll use
- JBoss Server that is shipped with JBos=
s Developer
+ JBoss Server that is shipped with JBoss=
Developer
Studio. You can do it by performing one of the following a=
ctions:
@@ -383,11 +390,11 @@
) .
-
+ =
Click the Run icon or right click your project folder and selec=
t
- Run As > Run on Server. If you
+ Run As > Run on Server. If you
haven't made any changes in web.xml file or cleared it out you can launch the application by=
right
@@ -396,9 +403,9 @@
page and selecting Run on the Server( =
-
-
-
+
+
+ ).
@@ -418,6 +425,6 @@
shipped with JBDS.
-
-
+ =
+
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf=
_application.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_appli=
cation.xml 2009-04-30 12:32:19 UTC (rev 14976)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_appli=
cation.xml 2009-04-30 13:08:52 UTC (rev 14977)
@@ -571,25 +571,24 @@
The Visual Page Editor will open in a screen split betwe=
en source code along the
top and a WYSIWIG view along the bottom. You can see that =
some JSF code will be
already generated as we choose a template when creating th=
e page.
- At the beginning it's necessary to create a
- <h:form>
- component where all others components are put.=
+ At the beginning it's necessary to create a =
+ <h:form>
+ component where all others components are put.
- Place the mouse cursor inside
- <f:view>
-
- </f:view>
-
+ Place the mouse cursor inside =
+ <f:view>
+ </f:view>
+ Go to JBoss Tools Palette and expand JSF HTML fo=
lder by selecting
it
- Click on
- <h:form>
- tag
+ Click on =
+ <h:form>
+ tag Insert h:form
@@ -720,11 +719,11 @@
- Switch to Source mode and insert
- <br/>
- tag after
- <h:outputText>
- component to make a new line.
+ Switch to Source mode and insert =
+ <br/>
+ tag after =
+ <h:outputText>
+ component to make a new line.Click
@@ -737,11 +736,11 @@
editor, and drop it inside the editor after the te=
xt.
- Switch to a Source mode and insert
- <br/>
- tag after
- <h:outputText>
- component to make a new line
+ Switch to a Source mode and insert
+ <br/>
+ tag after =
+ <h:outputText>
+ component to make a new lineClick
@@ -826,9 +825,9 @@
Go to Source mode
- Add the validation attribute to
- <f:validateLongRange>
- for user input validation
+ Add the validation attribute to =
+ <f:validateLongRange>
+ for user input validation
@@ -890,15 +889,13 @@
- In Source mode add
- <br/>
- tags between
- <outputText>
- ,
- <inputText>
- and
- <commandButton>
- components to place them on different =
lines
+ In Source mode add =
+ <br/>
+ tags between =
+ <outputText>
+ , <inputText>
+ and <commandButton>
+ components to place them on different linesinputnumber.jsp page should look like this:
@@ -957,13 +954,11 @@
This page, success.jsp, is shown if you correctly guesse=
d the number. The
-
- <h:outputFormat>
- tag will get the value of success_text from th=
e properties file. The {0}
+ <h:outputFormat>
+ tag will get the value of success_text from the properties=
file. The {0}
in success_text will be substituted for by the value of th=
e value attribute within
- the
- <f:param>
- tag during runtime.
+ the <f:param>
+ tag during runtime.
At the end, you have a button which allows you to replay=
the game. The action
value references a backing bean method. In this case, the =
method only terminates the
current session so that when you are shown the first page,=
the input text box is
--===============1149605901934143193==--