<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techspiration &#187; JSF</title>
	<atom:link href="http://www.blog.karthikbala.com/category/jsf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.karthikbala.com</link>
	<description>Technology, Spirituality and Rationality</description>
	<lastBuildDate>Sat, 03 Apr 2010 15:21:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JSF Step by Step</title>
		<link>http://www.blog.karthikbala.com/jsf-step-by-step/</link>
		<comments>http://www.blog.karthikbala.com/jsf-step-by-step/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 17:54:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JSF]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.blog.karthikbala.com/?p=9</guid>
		<description><![CDATA[Step by step tutorial on Java Server Faces for beginners.]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-size: 14pt;">JSF – Java Server faces</span></strong></p>
<p class="MsoNormal"><strong></strong></p>
<h2><a name="_What_Is_JavaServer_Faces?"></a><span style="font-size: 12pt;">What Is Java Server Faces?</span></h2>
<p class="MsoNormal">Java Server Faces is a new framework for building Web applications using Java.</p>
<p>All JSF projects need a particular directory structure as mentioned by the JSF framework.</p>
<p>This directory structure can be easily obtained by starting a JSF project in NetBeans.</p>
<h2><a name="_To_create_a_new Project in Netbeans"></a>To start a new JSF project in NetBeans</h2>
<ol style="margin-top: 0in;" type="1">
<li class="MsoNormal">Go to File Menu <span style="font-family: Wingdings;"><span>à</span></span> New Project</li>
<li class="MsoNormal">New Project Dialog box will open choose categories as web and project as Web Application. Click on the next button.</li>
<li class="MsoNormal">In the next page give the desired Project Name for eg We have given vahanJSF and give the location where you want to save the project.</li>
</ol>
<p class="MsoNormal">4. And in the same page select the server as tomcat. Netbeans is shipped with bundled Tomcat but you can choose other version of Tomcat if you desire by selecting the server combobox. <a href="file:///home/karthik/Desktop/karthikbala.com/search.html#_Adding_a_new_Server_1">To add a new server</a>.<br />
5.In the next page select the framework as JavaServer Faces this will enable the NetBeans to recognise the project as a type of JSF.<br />
Now you can see your project appears in left pane under Projects tab.</p>
<p class="MsoNormal" style="margin-left: 0.25in;">6.Expand the new projec to see its directory structure viz. Web Pages, Configuration Files, etc..</p>
<h2><span style="font-size: 12pt;">To create a new Web Page</span></h2>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong>1. </strong>Right click on the Web Pages <span style="font-family: Wingdings;"><span>à</span></span> New <span style="font-family: Wingdings;"><span>à</span></span> JSP.<strong><br />
</strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong>2. </strong>Give the name of the JSP page. We have given login. Click on Finish.</p>
<p class="MsoNormal"><strong>3. </strong>JSP pages acts as an interface containing only components like textboxes, comboboxes, radiobutton etc and these components are bound with backend bean where all the business logic is written. Backend bean is nothing but a java class file where we write java coding for our business logic.</p>
<p class="MsoNormal"><strong>To create a backend bean:</strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong>1. </strong>Right click on the Source Packages <span style="font-family: Wingdings;"><span>à</span></span> New <span style="font-family: Wingdings;"><span>à</span></span> Java Class.</p>
<p class="MsoNormal"><strong>2. </strong>Give Class name and the name of the Package. We have given Class name as loginbean and Package as vahanPackage. Click on Finish.</p>
<p class="MsoNormal">Any bean that u create in the project shud be registered in the faces-config.xml file i.e present in the Configuration Files as like</p>
<p class="MsoNormal">&lt;managed-bean&gt;<br />
&lt;managed-bean-name&gt;loginbean&lt;/managed-bean-name&gt;</p>
<p class="MsoNormal">&lt;managed-bean-class&gt;vahanPackage.loginbean&lt;/managed-bean-class&gt;</p>
<p class="MsoNormal">&lt;managed-bean-scope&gt;request&lt;/managed-bean-scope&gt;&lt;/managed-bean&gt;</p>
<p class="MsoNormal"><strong>Or another way to add a bean is to </strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong><span>1.</span></strong><span> </span>Right-click the project and choose New <span style="font-family: Wingdings;"><span>à</span></span> File/Folder. Under the Web category, select the JSF Managed Bean template and click Next.</p>
<p class="MsoNormal"><strong>2.</strong> Give the name and Package as you have given earlier. We have given Class name as userbean and Package as vahanPackage. Click on Finish.</p>
<p class="MsoNormal"><strong>3.</strong> Now open the Configuration file and see all the lines are added in it that you have added manually.</p>
<p class="MsoNormal">As we have created JSP page and backend bean so we’ll proceed with the coding part.</p>
<p class="MsoNormal"><strong>1.</strong> Open the JSP page. Now we need to declare the JSF tag libraries in the JSF file. Change the following code:</p>
<p><span style="font-size: 12pt;">&lt;%–</span><span style="font-size: 12pt;">&lt;%@taglib uri=”http://java.sun.com/jsp/jstl/core” prefix=”c”%&gt;</span><span style="font-size: 12pt;">–%&gt;</span></p>
<p>To the following:</p>
<p><span style="font-size: 12pt;">&lt;%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core” %&gt;</span><span style="font-size: 12pt;">&lt;%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html” %&gt;</span></p>
<p>Examine the prefix given as h and f</p>
<p>h denotes the basic html tags<br />
f denotes the jsf tags</p>
<p>These prefix letters can be changed according to ur choice but not recommended.</p>
<p><strong>2. </strong>Change the contents of both the <tt><span style="font-size: 10pt;">title</span></tt> and <tt><span style="font-size: 10pt;">h1</span></tt> tags to <tt><span style="font-size: 10pt;">Vahan.</span></tt></p>
<p><tt><strong><span>3. </span></strong></tt>Now add a JSF form to the file. In the Palette(Window <span style="font-family: Wingdings;"><span>à</span></span> Palette), click the JSF Form button, drag it to below the <tt><span style="font-size: 10pt;">h1</span></tt> tag, and release the mouse button. In the dialog box, leave Empty Form selected and click OK. The IDE fills in the following code in bold:</p>
<p><strong><span style="font-size: 12pt;">&lt;f:view&gt;</span></strong><strong><span style="font-size: 12pt;">&lt;h:form&gt;</span></strong><strong><span style="font-size: 12pt;">&lt;/h:form&gt;</span></strong><strong><span style="font-size: 12pt;">&lt;/f:view&gt;</span></strong></p>
<p><tt><strong><span>4. </span></strong></tt>We are going to use <tt><span style="font-size: 10pt;">inputText</span></tt> components to get the user input and a <tt><span style="font-size: 10pt;">commandButton</span></tt> component to submit the form. So our code will look like</p>
<p>&lt;%@page contentType=”text/html”%&gt;</p>
<p>&lt;%@page pageEncoding=”UTF-8″%&gt;</p>
<p>&lt;%–</p>
<p>The taglib directive below imports the JSTL library. If you uncomment it,</p>
<p>you must also add the JSTL library to the project. The Add Library… action</p>
<p>on Libraries node in Projects view can be used to add the JSTL 1.1 library.</p>
<p>–%&gt;</p>
<p>&lt;%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core” %&gt;</p>
<p>&lt;%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html” %&gt;</p>
<p>&lt;!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”</p>
<p>“http://www.w3.org/TR/html4/loose.dtd”&gt;</p>
<p>&lt;html&gt;</p>
<p>&lt;head&gt;</p>
<p>&lt;meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″&gt;</p>
<p>&lt;title&gt;Vahan&lt;/title&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;h1&gt;Vahan&lt;/h1&gt;</p>
<p>&lt;f:view&gt;</p>
<p>&lt;center&gt;</p>
<p>&lt;h1&gt;</p>
<p>&lt;h:outputText value=”Welcome to Login Page”/&gt;</p>
<p>&lt;/h1&gt;</p>
<p>&lt;h:form&gt;</p>
<p>&lt;p&gt;</p>
<p>&lt;h:outputText value=”UserName “/&gt;</p>
<p>&lt;h:inputText value=”#{loginbean.userName}” id=”tf_UserName”/&gt;</p>
<p>&lt;/p&gt;</p>
<p>&lt;p&gt;</p>
<p>&lt;h:outputText value=”Password<span> </span>“/&gt;</p>
<p>&lt;h:inputText value=”#{loginbean.password}” id=”tf_Password”/&gt;</p>
<p>&lt;/p&gt;</p>
<p>&lt;p&gt;</p>
<p>&lt;h:commandButton action=”#{loginbean.submit}” value=”SUBMIT” /&gt;</p>
<p>&lt;/p&gt;</p>
<p>&lt;/center&gt;</p>
<p>&lt;/h:form&gt;</p>
<p>&lt;/f:view&gt;</p>
<p>&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<p>Look at the value of inputText is given as {loginbean.userName} this means the value is bind with the userName property of the loginbean. So as to bind the value with a property in the bean we need to create setter and getter methods for that particular value.</p>
<p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><strong><span>5.</span></strong>Now open loginbean.java. Add the following field declarations (shown in bold) to loginbean.java:</p>
<p><span style="font-size: 12pt;">public class loginbean<span> </span>{<span> </span></span><span style="font-size: 12pt;"><strong>String userName;</strong></span><strong><span style="font-size: 12pt;">String password; 6.</span></strong><span style="font-size: 12pt;">Now let’s generate getters and setters for the fields.Right-click on fieldname(username) in the file and choose Refactor-&gt;Encapsulate Fields. </span>&lt;!–[if !vml]–&gt;</p>
<p class="MsoNormal"><strong>7. </strong>A dialog box will open. Select both the check boxes for password also. Click next.</p>
<p class="MsoNormal"><strong>8. </strong>Refactoring window will open then click on the DoRefactoring button. The IDE switches the access level for the fields to private and creates the getter and setter methods.</p>
<p class="MsoNormal"><strong>9. </strong>Now the code for loginbean.java would look like</p>
<p class="MsoNormal">public class loginbean {</p>
<p class="MsoNormal">private String userName;</p>
<p class="MsoNormal">private String password;</p>
<p class="MsoNormal">public String getUserName() {</p>
<p class="MsoNormal">return userName;</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal">public void setUserName(String userName) {</p>
<p class="MsoNormal">this.userName = userName;</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal">public String getPassword() {</p>
<p class="MsoNormal">return password;</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal">public void setPassword(String password) {</p>
<p class="MsoNormal">this.password = password;</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"><strong>10. </strong>Add a new JSP page called welcome.jsp. Add the following lines.</p>
<p class="MsoNormal">&lt;%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core” %&gt;</p>
<p class="MsoNormal">&lt;%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html” %&gt;</p>
<p class="MsoNormal">&lt;html&gt;</p>
<p class="MsoNormal">&lt;head&gt;</p>
<p class="MsoNormal">&lt;meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″&gt;</p>
<p class="MsoNormal">&lt;title&gt;Welcome to Vahan&lt;/title&gt;</p>
<p class="MsoNormal">&lt;/head&gt;</p>
<p class="MsoNormal">&lt;body&gt;</p>
<p class="MsoNormal">&lt;h1&gt;Welcome to Vahan&lt;/h1&gt;</p>
<p class="MsoNormal">&lt;f:view&gt;</p>
<p class="MsoNormal">&lt;h:form&gt;</p>
<p class="MsoNormal">&lt;p&gt;You’ve successfully registered with Vahan.&lt;/p&gt;</p>
<p class="MsoNormal">&lt;p&gt;Your name is &lt;h:outputText value=”#{loginbean.userName}” /&gt;&lt;/p&gt;</p>
<p class="MsoNormal">&lt;/h:form&gt;</p>
<p class="MsoNormal">&lt;/f:view&gt;</p>
<p class="MsoNormal">&lt;/body&gt;</p>
<p class="MsoNormal">&lt;/html&gt;</p>
<h2><span style="font-size: 12pt;">Setting Page Navigation</span></h2>
<p>Page navigation in the JSF framework is controlled by the <tt><span>faces-config.xml</span></tt> file, which is located under the Configuration Files node in the Projects window. For each page you set up a navigation rule which contains one or more navigation cases. For now, we will just map the submit action from the <tt><span>commandButton</span></tt> to <tt><span>welcome.jsp.</span></tt></p>
<p style="margin-left: 0.5in; text-indent: -0.25in;"><strong><span>1.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></strong>Double-click <tt><span>faces-config.xml</span></tt> to open the file in the Source Editor.</p>
<p><strong><span> 2.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></strong>Right-click anywhere in the file and choose Java ServerFaces <span style="font-family: Wingdings;"><span>à</span></span> Add Navigation Rule. Type <tt><span>/login.jsp</span></tt> in the Rule from View field and optionally enter a description of the rule. Then click Add.</p>
<h2><span style="font-size: 12pt;"> 3. </span><span style="font-size: 12pt; font-weight: normal;">This window will appear.</span><span style="font-weight: normal;"><br />
</span></h2>
<h2 style="margin-left: 0.25in;"><span style="font-size: 12pt;">4.</span><span style="font-size: 12pt; font-weight: normal;">Click on Add.The following code is entered in <tt><span>faces-config.xml</span></tt>:</span></h2>
<h2 style="margin-left: 0.25in;"><span style="font-size: 12pt; font-weight: normal;">&lt;navigation-rule&gt;</span></h2>
<h2><span style="font-size: 12pt; font-weight: normal;"> &lt;description&gt;</span></h2>
<h2><span style="font-size: 12pt; font-weight: normal;"> login</span></h2>
<h2><span style="font-size: 12pt; font-weight: normal;"> &lt;/description&gt;</span></h2>
<h2><span style="font-size: 12pt; font-weight: normal;"> &lt;from-view-id&gt;/login.jsp&lt;/from-view-id&gt;</span></h2>
<h2><span style="font-size: 12pt; font-weight: normal;"> &lt;/navigation-rule&gt;</span></h2>
<h2><span style="font-size: 12pt;"> 5. </span><span style="font-size: 12pt; font-weight: normal;">Right-click inside <tt><span>faces-config.xml</span></tt> and choose Java ServerFaces &gt; Add Navigation Case. Set the following:</span></h2>
<ul type="disc">
<li class="MsoNormal">From View: <tt><span style="font-size: 10pt;">/login.jsp</span></tt></li>
<li class="MsoNormal">From Outcome: <tt><span style="font-size: 10pt;">submit</span></tt></li>
<li class="MsoNormal">To View: <tt><span style="font-size: 10pt;">/welcome.jsp</span></tt><span><br />
</span></li>
</ul>
<h2 style="margin-left: 0.25in;"><span style="font-size: 12pt;">6.</span><span style="font-size: 12pt; font-weight: normal;"> Click on Add Following lines will appear.</span></h2>
<h2 style="margin-left: 0.25in;"><span style="font-size: 12pt;">&lt;navigation-case&gt;</span></h2>
<h2 style="margin-left: 0.25in;"><span style="font-size: 12pt;">&lt;from-outcome&gt;submit&lt;/from-outcome&gt;</span></h2>
<h2 style="margin-left: 0.25in;"><span style="font-size: 12pt;">&lt;to-view-id&gt;/welcome.jsp&lt;/to-view-id&gt;</span></h2>
<h2 style="margin-left: 0.25in;"><span style="font-size: 12pt;">&lt;/navigation-case&gt;</span></h2>
<p class="MsoNormal"><strong>How to set/add compiletime (classpath) and runtime libraries for a Project in Netbeans?</strong></p>
<p class="MsoNormal"><strong></strong></p>
<ol style="margin-top: 0in;" type="1">
<li class="MsoNormal">Right click on Project <span style="font-family: Wingdings;"><span>à</span></span> Properties.</li>
<li class="MsoNormal">A dialog box will open. Choose libraries under categories on left side. Click on <strong>Add Jar/Folder</strong> on the right hand side of the dialog box.</li>
</ol>
<ol style="margin-top: 0in;" type="1">
<li class="MsoNormal">Select all the jar files from where you have kept it.</li>
</ol>
<p class="MsoNormal"><strong>2. </strong>If Package is checked then they become war files i.e. runtime libraries. So if you want any file to be only compiled<span> </span>not packaged then uncheck it eg (servlet.jar/ servlet-api.jar). Click on ok and jar files will be added under Libraries folder of your project.<strong><br />
</strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong></strong></p>
<p class="MsoNormal"><strong>Note:</strong></p>
<p class="MsoNormal"><strong>1. </strong>servlet.jar/servlet-api.jar should never be packaged as it conflicts with the servlet.jar file of Tomcat.</p>
<p class="MsoNormal"><strong>2. </strong>Lib folder of your project should never be inside WEB-INF folder as all the files/folders inside WEB-INF get packaged by default thereby avoiding us to unpackage particular jars of lib. As you can see in the snapshot below, we have removed lib folder.</p>
<p class="MsoNormal"><strong>3. </strong>If you want a client to establish a connection to RMI server then you have to add the following line:- permission java.security.AllPermission;<span> </span>in C:j2sdk1.4.2_08jrelibsecurityjava.security. Its not necessary to install<span> </span>j2sdk1.4.2_08 in c: drive.</p>
<h2><span style="font-size: 12pt;">Configuring and Running the Application</span></h2>
<h2><span style="font-size: 12pt; font-weight: normal;">Now let’s set the IDE to display <tt><span>login.jsp</span></tt> when it runs the application and, finally, test the application.</span></h2>
<h2 style="margin-left: 0.5in; text-indent: -0.25in;"><span style="font-size: 12pt;"><span>1.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><span style="font-size: 12pt; font-weight: normal;">Right-click the project and choose Properties.</span></h2>
<h2><span style="font-size: 12pt;"><span>2.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><span style="font-size: 12pt; font-weight: normal;">Click the Run node and type <tt><span>/faces/login.jsp</span></tt> in the Relative URL field. Then click OK.</span><span><br />
</span></h2>
<h2><span style="font-size: 12pt;">3. </span><span style="font-size: 12pt; font-weight: normal;">Right-click the project and choose Run. The IDE builds the project, starts the application server, deploys the application, and shows the following page in the external browser:</span></h2>
<h2><a name="_Adding_a_new_Server"></a><a name="_Adding_a_new_Server_1"></a><span style="font-size: 12pt;">Adding a new Server</span></h2>
<h2 style="margin-left: 0in; text-indent: 0in;"><span style="font-size: 12pt;"><span>1.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><span style="font-size: 12pt; font-weight: normal;">Download a new server. We have downloaded apache-tomcat-6.0.14.</span></h2>
<h2 style="margin-left: 0in; text-indent: 0in;"><span style="font-size: 12pt;"><span>2.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><span style="font-size: 12pt; font-weight: normal;">Open </span><span style="font-size: 12pt;">D:apache-tomcat-6.0.14conftomcat-users.xml</span><span style="font-size: 12pt; font-weight: normal;">. Its not necessary that you download tomcat in D drive. You open<span> </span>tomcat-users.xml by right clicking on it and choose edit or editplus.</span></h2>
<h2 style="margin-left: 45pt; text-indent: -45pt;"><span style="font-size: 12pt;"><span>3.</span></span><span style="font-size: 12pt; font-weight: normal;"> Add these lines in it i.e. you have to create role as manager.</span></h2>
<h2 style="margin-left: 0.75in;"><span style="font-size: 12pt; font-weight: normal;">&lt;?xml version=’1.0′ encoding=’utf-8′?&gt;</span></h2>
<h2 style="margin-left: 0.75in;"><span style="font-size: 12pt; font-weight: normal;">&lt;tomcat-users&gt;</span></h2>
<h2 style="margin-left: 0.75in;"><span style="font-size: 12pt; font-weight: normal;">&lt;role rolename=”manager”/&gt;</span></h2>
<h2 style="margin-left: 0.75in;"><span style="font-size: 12pt; font-weight: normal;">&lt;user username=”manager” password=”manager” roles=”manager”/&gt;</span></h2>
<h2 style="margin-left: 0.75in;"><span style="font-size: 12pt; font-weight: normal;">&lt;/tomcat-users&gt;</span></h2>
<h2 style="margin-left: 0.75in;"><span style="font-size: 12pt;"><span>4.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><span style="font-size: 12pt; font-weight: normal;">Save the changes. Go to Netbeans and open Window </span><span style="font-weight: normal; font-size: 12pt; font-family: Wingdings;"><span>à</span></span><span style="font-size: 12pt; font-weight: normal;"> Runtime.</span><span><br />
</span></h2>
<h2 style="margin-left: 0.75in; text-indent: -0.75in;"><span style="font-size: 12pt;"><span>5.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><span style="font-size: 12pt; font-weight: normal;">Runtime window will open. Right click on Servers </span><span style="font-weight: normal; font-size: 12pt; font-family: Wingdings;"><span>à</span></span><span style="font-size: 12pt; font-weight: normal;"> Add Server.</span><span><br />
</span></h2>
<h2 style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><span>6.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><span style="font-size: 12pt; font-weight: normal;">Choose the type of server you want to add. For adding versions higher than Tomcat5.5,<span> </span>select Tomcat5.5.</span></h2>
<h2><span style="font-size: 12pt;"><span>7.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><span style="font-size: 12pt; font-weight: normal;">Give the name of the server and click on next.</span><span><br />
</span></h2>
<p class="MsoNormal"><strong>8. </strong>In Catalina Home, Browse and give the location of the apache-tomcat -6.0.14. Give username as password as manager.</p>
<p class="MsoNormal"><strong>9. </strong>Click on Finish. You can see apache-tomcat-6.0.14 is added in Servers.</p>
<p><strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.karthikbala.com/jsf-step-by-step/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
