webwork / docs / wikidocs / JSP Tags.html

        <title>WebWork 2 : JSP Tags</title>
	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    

	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
			    <td valign="top" class="pagebody">
				    <div class="pageheader">
					    <span class="pagetitle">
                            WebWork 2 : JSP Tags
				    <div class="pagesubheading">
					    This page last changed on Jun 18, 2004 by <font color="#0050B2">plightbo</font>.

				    <p class="paragraph"><h1 style="margin: 4px 0px 4px 0px;" class="heading1"><a name="JSPTags-WebWork%26%23039%3BsSupportedViewsJSP">WebWork&#039;s Supported Views - JSP</a></h1></p>JavaServer Pages (JSP) is an important view technology that WebWork (WW) supports. This section provides you the building blocks you need to use JSP as a view technology.<p class="paragraph"><b class="strong">Reference Pages</b>
<li> <a href="Non-UI Tags.html" title="Non-UI Tags">Non-UI Tags</a></li>
<li> <a href="UI Tags.html" title="UI Tags">UI Tags</a><ol>
<li> <a href="Templates.html" title="Templates">Templates</a> (how UI tags render html)</li>
<li> <a href="Themes.html" title="Themes">Themes</a></li>
<h2 class="heading2"><a name="JSPTags-Background">Background</a></h2></p>So what is JSP? From a technical perspective, JSP is &quot;a page created by the web developer that includes JSP technology-specific tags, declarations, and possibly scriptlets, in combination with other static (HTML or XML) tags. A JSP page has the extension .jsp; this signals to the web server that the JSP engine will process elements on this page.&quot; See JSP for more info.<p class="paragraph">In addition, JSP &quot;provides a simplified, fast way to create web pages that display dynamically-generated content. The JSP specification, developed through an industry-wide initiative led by Sun Microsystems, defines the interaction between the server and the JSP page, and describes the format and syntax of the page.&quot; See JSP for more info.</p>So you create your first JSP and deploy it to your web server. The first time a user requests your page, your servlet runner such as Tomcat will compile the JSP into a servlet class and use this class to render your web page to the user. So, if the end result of this work is a servlet, why not just write a servlet? Because servlets don&#039;t offer you an easy means of abstracting web presentation from web content. In the early days, people developed web sites exclusively with servlets. A developer would use the servlet to dynamically output HTML code. The typical way of doing this was to write out HTML code - out.write(&quot;&lt;HTML&gt;..);. This approach became a nightmare to maintain and costly to develop since it required a Java developer.<p class="paragraph">When JSP technology arrived, developers began using this new technology for their presentation. The early JSP specification had limited support for custom tags so early adopters would write Java scriptlets and JavaScript to create dynamic sites. Mixing Java and HTML was less than ideal because the Java code itself is within tags. This makes the JSP difficult to read and comprehend. This approach does work and may be fine for simple sites but it is less than adequate for complex sites. Complex sites require the ability to abstract the design and its logic to a form that is manageable and maintainable.</p>JSP has since matured and now provides rich support for custom tags. Developers are now writing libraries of custom tags to perform simple and complex tasks. These custom tags abstract functionality in a simple semantic form that is consistent with HTML or XML. With well-written JSP tags, web developers can develop and maintain complex web sites with NO Java code in their JSP.<p class="paragraph"><h2 class="heading2"><a name="JSPTags-WebWork%26%23039%3BsJSPtags">WebWork&#039;s JSP tags</a></h2></p>Writing custom tags can at first be a daunting task but no worries, WW provides an extensive JSP tag library to help you develop web sites from simple to complex. This tag library is grouped into <a href="Non-UI Tags.html" title="Non-UI Tags">Non-UI Tags</a> and <a href="UI Tags.html" title="UI Tags">UI Tags</a>. The major difference between the two is that UI tags have an implied JSP template associated with them that will render HTML form controls or a set of HTML tags to produce a composite output such as a table. These templates are just defaults and will probably be all you need for your development needs. But if you need more, WW gives you the ability to override the default and insert your own template. In addition, you can group templates together under a directory and logically refer to the directory as a theme.<p class="paragraph">Themes give you the ability to skin your web site. A skin doesn&#039;t just mean different graphics, colors, etc. but it can mean different views for different browsing technologies. For instance, you might have a theme for WAP, HTML, and DHTML.</p>Non-UI tags provide support for control flow, internationalization, WW&#039;s Actions, iterators, text, JavaBeans and more.<p class="paragraph">A more exchaustive description of the tags can be found in the appendix on the WW taglib: <a href="Non-UI Tags.html" title="Non-UI Tags">Non-UI Tags</a>, <a href="UI Tags.html" title="UI Tags">UI Tags</a>.</p><h2 class="heading2"><a name="JSPTags-Anexample">An example</a></h2><p class="paragraph">The best way to introduce how to use JSP as a view technology with WW is to walk through a simple but complete example. The example we will examine in detail is Webshop app which you can find on the index.jsp page if you deployed WW&#039;s examples. WW provides many examples to give you a better understanding of its features and capabilities. Webshop app is a good example to review because it utilizes an array of WW features.</p>Before we jump into the details of the example, lets look at the application&#039;s use case. Listed below is a simple normal flow of a shopper purchasing a CD.<br/>

<li> Webshop app use case flow User selects desired language.</li>
<li> User is presented with a list of CDs. This list is an aggregate of album, artist, and price for each CD.</li>
<li> User adds CD to their shopping cart by selecting desired CD and quantity.</li>
<li> User continues to add or remove CDs from their shopping cart.</li>
<li> User checks out when they want to make a purchase and the shopping cart contents are displayed to the user.</li>
<li> Use can shop again if desired.</li>
<h3 class="heading3"><a name="JSPTags-Step1Userselectsdesiredlanguage">Step 1 - User selects desired language</a></h3><p class="paragraph">So lets begin walking through this application. When you select this application from the example index page, its link points to webwork/i18n/index.jsp. Upon examining this page, we learn that it forwards the user to an action - i18n.Language.action. By default, WW maps URIs with *.action pattern to servlet ServletDispatcher. This class is responsible to retrieve an appropriate Action class and execute it. If the result of the execution is assigned a view (JSP), then the user will be forwarded to this view.</p>ServletDispatcher&#039;s task of determining an appropriate action begins with the URI of the request. In our case, the dispatcher is passed the URI i18n.Language.action. This URI maps directly to an action class named Language in the webwork.action.test.i18n package. Notice that our URI was not webwork.action.test.i18n.Language.action as it actually is packaged but just i18n.Language.action. The reason is that we redefined webwork.action.packages property in our webwork.properties file with the line shown below. This override allows us to drop webwork.action.test prefix from any action reference.<br/>

<div class="code"><div class="codeContent">
<pre>webwork.action.packages=webwork.action.test, webwork.action.standard</pre>
</div></div><p class="paragraph">Now lets examine action Language. The first thing we discover is that it extends Shop which extends ActionSupport. This class is a base class that you will extend most of the time. This class gives you access to a set of useful functionality that we will see used later. In addition, it provides the default flow of execution. Actions by default will have their execute method called when an URI or alias maps to it. When execute is called on ActionSupport, it determines if the URI was suffixed with a command such as !foo. foo in this example is the command you want executed. This command will be translated into a doFoo() method call that ActionSupport will call on your action. This allows you to call specific methods on your action.</p>Now lets examine action Language. The first thing we discover is that it extends Shop which extends ActionSupport. This class is a base class that you will extend most of the time. This class gives you access to a set of useful functionality that we will see used later. In addition, it provides the default flow of execution. Actions by default will have their execute method called when an URI or alias maps to it. When execute is called on ActionSupport, it determines if the URI was suffixed with a command such as !foo. foo in this example is the command you want executed. This command will be translated into a doFoo() method call that ActionSupport will call on your action. This allows you to call specific methods on your action.<p class="paragraph">Our URL was not a command, so ActionSupport will first call doValidate() method if you provide one. This allows you to perform validation before execution begins. Since we don&#039;t have this method, ActionSupport then calls our doExecute(). For our example, Language checks to see if you have set a desired language. Since we have not, it returns ERROR. The servlet dispatcher will now check the view mappings for i18n.Language.error. Looking at views.properties located in WEB-INF/classes, we find a section of mappings for our application shown below. For our error, we see that the alias maps to langauge.jsp. So the dispatcher will forward the user to that page.</p>Webshop view mapping:<br/>

<div class="code"><div class="codeContent">
<pre># Webshop (I18N example adaptation)&#10;i18n.Shop.success=shop.jsp&#10;i18n.Add.success=shop.jsp&#10;i18n.Delete.success=shop.jsp&#10;i18n.Checkout.success=checkout.jsp&#10;i18n.Language.success=shop.jsp&#10;i18n.Language.error=language.jsp&#10;i18n.Restart.success=shop.jsp&#10;i18n.Cart.success=cart.jsp&#10;i18n.CDList.success=cdlist.jsp</pre>
</div></div><p class="paragraph">So what really happens when my action is fetched? By default, WW is setup with DefaultActionFactory as your ActionFactory. This factory chains together other factories that get called trying to fulfill the request of retrieving the desired action.</p>Take for example our Language action. The servlet dispatcher will call DefaultActionFactory and ask it to return the appropriate action. The factory then places this request on the chain. Once on the chain, each factory will either ignore the request and pass it up the chain, do some processing on the action and pass it up the chain, and/or return the action. Listed below is the chain of factory proxies that comprises DefaultActionFactory.<br/>

<li> ParametersActionFactoryProxy - This proxy will call action setters for matching parameters.</li>
<li> PrepareActionFactoryProxy - This proxy will call prepare() method on action. This will allow actions to do any preparation work needed before validation or execution.</li>
<li> ContextActionFactoryProxy - This proxy will set action&#039;s context. Actions can implement *Aware interfaces that will tell this proxy what to set on your action.</li>
<li> CommandActionFactoryProxy - This proxy will strip the command from the URI and set the command on the action.</li>
<li> AliasingActionFactoryProxy - This proxy will retrieve the appropriate action name if the URI was an alias.</li>
<li> JspActionFactoryProxy - This proxy will wrap a JSP and make it an action.</li>
<li> PrefixActionFactoryProxy - This proxy will use the prefixes setup in the properties file to find the appropriate action class.</li>
<li> XMLActionFactoryProxy - This proxy will retrieve the an XML action if required.</li>
<li> ScriptActionFactoryProxy - This proxy will wrap a JavaScript and execute it.</li>
<li> JavaActionFactory - This proxy will return the appropriate Java action object.</li>
As you can see, a lot is happening under the hood of DefaultActionFactory. So lets return back to our example beginning on language.jsp where we are to select our desired langauge. On this page, the user is presented with a radio list of languages. Lets take a closer look at the code to render this control.<br/>

<div class="code"><div class="codeContent">
<pre>&lt;webwork:action name=<span class="java&#45;quote">&quot;&#039;i18n.LanguageList&#039;&quot;</span>&gt;&#10;   &lt;ui:radio label=<span class="java&#45;quote">&quot;&#039;Language&#039;&quot;</span> name=<span class="java&#45;quote">&quot;&#039;language&#039;&quot;</span> list=<span class="java&#45;quote">&quot;languages&quot;</span>/&gt;&#10;&lt;/webwork:action&gt;</pre>
</div></div><p class="paragraph">First notice the non-UI action tag. This tag will execute the action LanguageList. On execution, this class will load a locale-to-language mapping and save it to its attribute languages. The tag will then place this action object on the ValueStack so its body can reference it.</p>Now look at the UI tag radio. This tag will create an HTML INPUT control of type radio. The name of the control will be language, the label for the control will be Language. The values to display in the control will come from a method getLanguages() called on LanguageList action. The tag then iterates over the map using the keys for the VALUE parameter of the INPUT tag and the values for the displayed text.<p class="paragraph">The user now selects their desired language and submits the form. The form is submitted to Language again. This time a request parameter language is sent with the request. When the appropriate action is fetched again, the ParametersActionFactoryProxy will call all setter methods on the action for the request parameters passed in. This means action Language will have its setLanguage() method called. Now, when doExecute() is called we discover that the user has selected a language, which we will use to create the appropriate locale and place it in the user&#039;s session.</p><div class="code"><div class="codeContent">
<pre>session.put(<span class="java&#45;quote">&quot;locale&quot;</span>, locale);</pre>
</div></div><p class="paragraph">Notice how easy it was to put information into the session. But where did this attribute come from? Remember that our action extends Shop and this class implements SessionAware. Because it is SessionAware it will have its setSession() method called providing the action with a map of the user&#039;s session. Now that we placed the locale in the session, we return SUCCESS. The dispatcher will look up the alias i18n.Language.success and see it maps to shop.jsp. The user will now be forwarded to this page to begin shopping.</p><h3 class="heading3"><a name="JSPTags-Step2UserispresentedwithalistofCDs">Step 2 - User is presented with a list of CDs</a></h3><p class="paragraph">In this step the user has already selected their language and their locale is in their session. They are now on shop.jsp. Examining the code on this page we see several uses of a non UI tag text. This tag provides the ability to fetch strings from resource bundles. The tag will recognize our locale and use the appropriate resource bundle to retrieve the correct language text.</p><div class="code"><div class="codeContent">
<pre>&lt;webwork:text name=<span class="java&#45;quote">&quot;&#039;main.title&#039;&quot;</span>/&gt;</pre>
</div></div><p class="paragraph">We also notice that this page includes another page i18n.CDList.action. The non UI tag include will invoke action CDList and upon success will include view cdlist.jsp in the shop.jsp. Action CDList will load a list of CDs from a text file into a list. After the CDs are loaded we now turn our attention to cdlist.jsp</p><div class="code"><div class="codeContent">
<pre>CD:&lt;webwork:include page=<span class="java&#45;quote">&quot;i18n.CDList.action&quot;</span>  /&gt;</pre>
</div></div><p class="paragraph">cdlist.jsp will provide a HTML SELECT form control. In this example, we build an HTML control instead of using WW&#039;s UI tag select. We use WW&#039;s non UI tag iterator to build the select control. This tag allows us to iterate over the cd list. So where did the cd list come from? Remember, that we called action CDList beforehand. After the action was called, WW placed this action on the ValueStack for reference by the view. So, WW will look for a method named getCDList() which it will find on action CDList. This method returns a list that the iterator tag will iterate over. Each iteration will output a HTML OPTION tag. Also notice the non UI tag property. For each member in the list, the property tag is retrieving album, artist, and country from the CD. Also notice that the last property is using action ComputePrice to determine the appropriate price for the CD. The semantic @pricer/computePrice(price) means use the object defined by parameter pricer and call its method getComputePrice passing in the CD&#039;s price as a parameter. Pretty cool. <img class="rendericon" src="./icons/emoticons/smile.gif" height="20" width="20" align="absmiddle" alt="" border="0"/></p><div class="code"><div class="codeContent">
<pre>&lt;webwork:action name=<span class="java&#45;quote">&quot;&#039;webwork.action.test.i18n.ComputePrice&#039;&quot;</span> id=<span class="java&#45;quote">&quot;pricer&quot;</span>/&gt;&#10;&#10;&lt;select name=<span class="java&#45;quote">&quot;album&quot;</span>&gt;&#10;   &lt;webwork:iterator value=<span class="java&#45;quote">&quot;CDList&quot;</span>&gt;&#10;   &lt;option value=<span class="java&#45;quote">&quot;&lt;webwork:property value=&quot;</span>album<span class="java&#45;quote">&quot;/&gt;&quot;</span>&gt;&#10;      &lt;webwork:property value=<span class="java&#45;quote">&quot;album&quot;</span>/&gt;,&#10;      &lt;webwork:property value=<span class="java&#45;quote">&quot;artist&quot;</span>/&gt;, &lt;webwork:property value=<span class="java&#45;quote">&quot;country&quot;</span>/&gt;,&#10;      &lt;webwork:property value=<span class="java&#45;quote">&quot;&#64;pricer/computePrice(price)&quot;</span>/&gt;&#10;   &lt;/option&gt;&#10;   &lt;/webwork:iterator&gt;&#10;&lt;/select&gt;</pre>
</div></div><p class="paragraph">Now back to shop.jsp. Examining the code further reveals another interesting aspect. Look at the UI tag textfield&#039;s label attribute shown below. Notice the attribute&#039;s value is a method call text(&#039;main.qtyLabel&#039;). This method will retrieve an appropriate string from our resource bundle. But what action has a getText() method? Remember that action Shop extends ActionSupport. This action provides this method.</p><div class="code"><div class="codeContent">
<pre>&lt;ui:textfield label=<span class="java&#45;quote">&quot;text(&#039;main.qtyLabel&#039;)&quot;</span> name=<span class="java&#45;quote">&quot;&#039;quantity&#039;&quot;</span> value=<span class="java&#45;quote">&quot;1&quot;</span> size=<span class="java&#45;quote">&quot;3&quot;</span>/&gt;</pre>
</div></div><p class="paragraph">The last thing of interest about JSP shop.jsp is it includes the users shopping cart at the end.</p><div class="code"><div class="codeContent">
<pre>&lt;webwork:include value=<span class="java&#45;quote">&quot;&#039;cart.jsp&#039;&quot;</span>  /&gt;</pre>
</div></div><p class="paragraph">When cart.jsp (shown below) is included it retrieves user&#039;s cart items shown in the code below. The attribute value of value translates into a couple of method calls getCart()/getItems(). The first method is called on action Shop which returns a Cart and then the next method is called on Cart. If the first method call does not retrieve a cart, Shop will create one with no items and place it in the user&#039;s session.</p><div class="code"><div class="codeContent">
<pre>&lt;webwork:property value=<span class="java&#45;quote">&quot;cart/items&quot;</span>&gt;&#10;&lt;webwork:<span class="java&#45;keyword">if</span> test=<span class="java&#45;quote">&quot;.&quot;</span>&gt;&#10;&#10;    &lt;center&gt;&#10;    &lt;table border=<span class="java&#45;quote">&quot;0&quot;</span> cellpadding=<span class="java&#45;quote">&quot;0&quot;</span> width=<span class="java&#45;quote">&quot;100&#37;&quot;</span> bgcolor=&#039;&lt;webwork:text name=<span class="java&#45;quote">&quot;&#039;cart.bgcolor&#039;&quot;</span>/&gt;&#039;&gt;&#10;    &lt;tr&gt;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:text name=<span class="java&#45;quote">&quot;&#039;cd.albumLabel&#039;&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:text name=<span class="java&#45;quote">&quot;&#039;cd.artistLabel&#039;&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:text name=<span class="java&#45;quote">&quot;&#039;cd.countryLabel&#039;&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:text name=<span class="java&#45;quote">&quot;&#039;cd.priceLabel&#039;&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:text name=<span class="java&#45;quote">&quot;&#039;cd.quantityLabel&#039;&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;td&gt;&lt;/td&gt;&#10;   &lt;/tr&gt;&#10;&#10;&lt;webwork:action name=<span class="java&#45;quote">&quot;&#039;i18n.ComputePrice&#039;&quot;</span> id=<span class="java&#45;quote">&quot;pricer&quot;</span>/&gt;&#10;&lt;webwork:iterator&gt;&#10;   &lt;tr&gt;&#10;      &lt;webwork:property value=<span class="java&#45;quote">&quot;cd&quot;</span>&gt;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:property value=<span class="java&#45;quote">&quot;album&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:property value=<span class="java&#45;quote">&quot;artist&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:property value=<span class="java&#45;quote">&quot;country&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:property value=<span class="java&#45;quote">&quot;&#64;pricer/computePrice(price)&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;/webwork:property&gt;&#10;&#10;      &lt;td&gt;&lt;b&gt;&lt;webwork:property value=<span class="java&#45;quote">&quot;quantity&quot;</span>/&gt;&lt;/b&gt;&lt;/td&gt;&#10;      &lt;td&gt;&#10;         &lt;form action=<span class="java&#45;quote">&quot;i18n.Delete.action&quot;</span> method=<span class="java&#45;quote">&quot;post&quot;</span>&gt;&#10;           &lt;input type=submit value=&#039;&lt;webwork:text name=<span class="java&#45;quote">&quot;&#039;cart.delLabel&#039;&quot;</span>/&gt;&#039;&gt;&#10;           &lt;input type=hidden name=<span class="java&#45;quote">&quot;album&quot;</span> value=&#039;&lt;webwork:property value=<span class="java&#45;quote">&quot;cd/album&quot;</span>/&gt;&#039;&gt;&#10;         &lt;/form&gt;&#10;      &lt;/td&gt;&#10;   &lt;/tr&gt;&#10;&lt;/webwork:iterator&gt;&#10;&#10;   &lt;/table&gt;&#10;   &lt;p&gt;&#10;   &lt;p&gt;&#10;   &lt;form action=<span class="java&#45;quote">&quot;i18n.Checkout.action&quot;</span>  method=<span class="java&#45;quote">&quot;post&quot;</span>&gt;&#10;        &lt;input type=<span class="java&#45;quote">&quot;submit&quot;</span> value=&#039;&lt;webwork:text name=<span class="java&#45;quote">&quot;&#039;cart.checkoutLabel&#039;&quot;</span>/&gt;&#039;&gt;&#10;   &lt;/form&gt;&#10;  &lt;/center&gt;&#10;&#10;&lt;/webwork:<span class="java&#45;keyword">if</span>&gt;&#10;&lt;/webwork:property&gt;</pre>
</div></div><p class="paragraph"><h3 class="heading3"><a name="JSPTags-Step3UseraddsCDtotheirshoppingcart">Step 3 - User adds CD to their shopping cart</a></h3></p>Now the user sees a list of CDs specific to their locale. The user selects a CD and enters a quantity and submits the form. The form is submitted to i18n.Add.action which maps to action Add. Again, parameters posted will be set on this action. For our scenario, this will be quantity and album. Then the action&#039;s doExecute() method is called and it retrieve&#039;s the user&#039;s shopping cart and adds the cd to it. The action then returns SUCCESS which maps to view shop.jsp again. This time the user&#039;s shopping cart has contents so it will be displayed below the cd list.<p class="paragraph"><h3 class="heading3"><a name="JSPTags-Step4UsercontinuestoaddorremoveCDs">Step 4 - User continues to add or remove CDs</a></h3></p>At this point, the user repeats the procedure of adding to and removing from their shopping cart. When they are done shopping, they then checkout.<p class="paragraph"><h3 class="heading3"><a name="JSPTags-Step5Userchecksout">Step 5 - User checks out</a></h3></p>At this stage, the user is done shopping and has decided to checkout. The post of this form is to i18n.Checkout.action. This maps to aciton Checkout. This action will determine the total cost of the contents in the user&#039;s shopping cart and sets its attribute totalPrice. The action returns SUCCESS which maps to to view checkout.jsp. This view will display the user&#039;s shopping cart contents along with its total price.<p class="paragraph"><h3 class="heading3"><a name="JSPTags-Step6Usercanshopagainifdesired.">Step 6 - User can shop again if desired.</a></h3></p>At this stage, the user has checked out and if they want they can begin shopping again. If they choose to start again, they select the HREF which points to i18n.Restart.action. This action will remove the user&#039;s shopping cart and return SUCCESS which will map to view shop.jsp to start this process all over again.<p class="paragraph"><h2 class="heading2"><a name="JSPTags-Summary">Summary</a></h2></p>Hopefully, this example gave you a good start at understanding what a JSP might look like using WW&#039;s features. This example was not meant to be an exhaustive discovery of WW but just an introduction. There are other examples you can walk through on your own to provide additional insight into WW. In addition, you will want to read the sections referenced below for more specific documentation covering WW&#039;s features. 

	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
			    <td align="center"><font color="grey">Document generated by Confluence on Oct 15, 2004 20:55</font></td>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.