NetBean 6.9

Objectives:

  • Visual JSF is unstable and not added in NetBean 6.9 !!

  • Installation and testing Netbean 6.9 in Window 7 64 bit
  • So Darling save the Last Version For Me NetBean 6.0

Step: 1 Start a new new Project

Create a new Project, using File main menu

Choose a web-project

Choose a server

This Creates a web page with Java Server Face format. welcomeJSF.1.jsp.txt

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<%--
This file is an entry point for JavaServer Faces application.
--%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8"/>
<title>JSP Page</title>
</head>
<body>
<h1><h:outputText value="JavaServer Faces"/></h1>
</body>
</html>
</f:view>
 

Edit the above code to invoke NewServlet1 class (welcomeJSF_final.jsp.txt)

<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8"/>
<title>JSP Page</title>
</head>
<body>
<h1><h:outputText value="JavaServer Faces"/></h1>
<a href="http://manas14pc:8080/WebApp1/NewServlet1">Visit NewServlet1</a>
</body>
</html>
</f:view>
 

Step: 2 Comparing NetBean 6. 0 and 6.9 using Java Server faces and also see ( JSP_JSF_Servlet_container.htm) .

NetBean 6.0 version with Visual JSF

Now let us look at NetBean 6.9 version

The above web-page is ready to run; for intranet users http://manas14pc:8080/WebApp1/faces/welcomeJSF.jsp

 

Step: 3 Let us add a Servlet Page

Provide a package name as suits you the best; for example i named as " nb90.ex1 ", that will add following folder and sub-folder as shown below

C:\NetBean69_Projects\ex1\WebApp1\src\java\nb90\ex1\NewServlet1.java

Click Next on the current screen and appear to this screen ( as shown below), and note the java Class Name

Please note, how the NetBean 6.9 Integrated Developing Environment ( IDE) generates Servlet page, and the codes to begin with ! To  view the code snippet, please click on the link NewServlet1.java..txt

Run file http://manas14pc:8080/WebApp1/NewServlet1

Step: Creating Hyperlink on welcomeJSF.jsp ; to  view the code please follow this link NewServlet_final.java..txt

Step : 5 Now let us open the default tomcat server 6.0

Now let us verify with Tomcat Manager, (for intranet users only) http://manas14pc:8080/manager/html

The welcome page will appear with the hyperlink to the "NewServlet1" page

Hyper link Opens the Servlet page