The New Visual Web Application Wizard for NetBeans Visual Web Pack 5.5

NetBeans 5.5 and Visual Web Pack Technical Preview are Out! Now you can use all the power of the NetBeans IDE with many of the great visual web application development features from Java Studio Creator. To get started developing a Visual Web Application, create a new project then choose "Web->Visual Web Application".

New Project Wizard: Choose Project

You use the New Project wizard to create a new IDE project.

To open the New Project wizard, choose File > New Project (Ctrl-Shift-N). More project architecture details can be found in my previous weblog, "Understand the NetBeans New Web Application Wizard".

 

New Visual Web Application Wizard: Name and Location

The New Visual Web Application wizard creates a new standard project containing an empty visual web application. You open the New Visual Web Application wizard by opening the New Project wizard and selecting the Visual Web Application template from the Web category.

In the Name and Location page, you have to set the following properties:

  • Project Name. Specifies the display name of the project. This name is also used to create the project folder and the context path.
  • Project Location. Specifies the location where you want to store the project metadata and source code.
  • Project Folder. Specifies the folder where you want to store the project metadata and source code. The folder is a concatenation of the project location and the project name.
  • Default Java Package. Specifies the default package to hold the backing files for the JSF webforms that are created. The initial name for this package is derived from the project name.
  • Source Structure. Specifies how your web application will be structured.

    Web application source files can be structured according to one of the following two recommendations. The recommendations are intended to assist you with organizing the files and directories associated with an application project in a logical fashion. When you create a web application, you must choose according to which recommendations your sources are to be structured:

    • Java BluePrints. The Java BluePrints Project Conventions specify recommended conventions for structuring enterprise applications or web applications.
    • Jakarta. The Jakarta recommendations specify recommended conventions for structuring web applications.

    Java BluePrints

    Jakarta


      About Web Applications

      A web application is an application written for the Internet, including those built with Java technologies such as JavaServer Pages and servlets, as well as those built with non-Java technologies such as CGI and Perl.

      A web application roughly corresponds to the J2EE term web application module. This is a deployable unit that consists of one or more web components, other resources, and web application deployment descriptors, contained in a hierarchy of directories and files in a standard web application format.

      Creating Web Components

      A web component is an object that provides services in response to requests, within the context of a web application.

      The main web components are as follows:

      • JSP pages and JSP segments.
      • Applets.
      • Java class files for the servlets, filters, and listeners.
      • Java class files for the classes that the JSP pages, applets, servlets, filters, and listeners depend on such as JavaBeans components. Optionally, you can package these classes as library JAR files.
      • Static documents, such as HTML files, images, sound files, and so on.
      • Tag files and tag segments.
      • Custom tag libraries with tag library descriptor files (TLD files). TLD files are typically included in the tag library's JAR file.

      Before you can create a web component, you must create a web application to contain it.

      Creating Web Applications

      Web applications have a defined folder structure. A web application is usually packaged and deployed as a web archive (WAR) file, although a web application does not always have to be packaged in order to be deployed.

      A web application must contain a deployment descriptor file ( WEB-INF/web.xml). A web application can contain one or more web components.

      Configuring Web Application Deployment Descriptors

      Deployment descriptors are XML-based text files whose elements describe how to assemble and deploy a module to a specific environment. The elements also contain behavioral information about components not included directly in code.

      For web applications, there are three types of deployment descriptors:

      • web.xml. The general web application deployment descriptor that configures deployment settings for components belonging to a web application, such as servlets and JSP files.
      • sun-web.xml. The server-specific deployment descriptor that configures deployment settings for the Sun Java System Application Server.
      • context.xml.The server-specific deployment descriptor that configures deployment settings for the Tomcat Web Server.

      About Web Root

      The web root (document base) folder corresponds to the highest level of the project. The illustrations show the JSP files in both the root folder and the WEB-INF folder. You cannot directly access JSP files that are under the WEB-INF folder. These JSP files can be accessed only by another JSP file or by a servlet, such as by a forwarding request.

      TLD files are typically packaged in the tag library's JAR file. If not, place the TLD file in the WEB-INF folder or subfolder.

      Note that the Tomcat Web Server does not support .zip files in the WEB-INF/lib folder.

       

  • Server. Specifies the web application's server. Only servers that are registered with the IDE are available to be selected here:
    • For versions of the IDE that are bundled only with the Tomcat Web Server, the Tomcat Web Server is automatically registered in the IDE.
    • For versions of the IDE that are bundled with both the Tomcat Web Server and the Sun Java System Application Server, both servers are automatically registered in the IDE.
  • J2EE Version. Specifies the J2EE level against which your web application will run.
  • Source Level Recommendations. One of the following checkboxes will appear if JDK 1.5 is set as the default platform in the Java Platform Manager. The J2EE 1.4 and J2EE 1.3 specifications do not recommend JDK 1.5. Therefore, if you want to create a portable application, select the appropriate checkbox:
    • Use JDK 1.4 and Set Source Level to 1.4. This checkbox appears if JDK 1.4 is available in the Java Platform Manager. Select this checkbox to set both your JDK level and your source level to 1.4.
    • Set Source Level to 1.4. This checkbox appears if JDK 1.4 is not available in the Java Platform Manager. Select this checkbox so that at least your source level is set to 1.4.
  • Set as Main Project. Sets the newly created project as the main project.

    Setting the Main Project

    When you develop a large application consisting of numerous source directories, it is common to split up your code into separate projects. Of these projects, one is typically the entry point for your application and contains the application's main class.

    To tell the IDE which of your projects is the main entry point for your application, you set one project to be the main project. The IDE provides commands that act on the main project. For example, running the Build Main Project command builds both the main project and all of its required projects, thereby ensuring that you all of your compiled classes are up-to-date. Only one project can be the main project at any time.

Click Finish, the project is created on your computer and opened in the IDE. You can view its logical structure in the Projects window and its file structure in the Files window.
Comments:

Very useful article. I am trying to figure out where to place data files. Here is the scenario: I have a couple of methods that are includeded in a jar file (added as a library). These methods try to access data files from a folder called resources\\data. The jar file was created by an eclipse project, and the resources folder in eclipse project is under eclipse project folder. Now, where should I place those data files when a webservice is created in NetBeans (using Sun application server). Thanks for any help. Rohana

Posted by Rohana Rajapakse on March 23, 2007 at 03:29 AM PDT #

I am a student of polytechnic college, of department Computer Engineering. I want to make "main project on Web Based Application."

Posted by saurabh vyas on August 14, 2008 at 12:36 AM PDT #

I want to make a project on Web Base Application.

Posted by saurabh vyas on August 14, 2008 at 12:44 AM PDT #

I want to make a project on Web Base Application.

Posted by saurabh vyas on August 14, 2008 at 12:45 AM PDT #

I am a student of polytechnic college, of department Computer Engineering. I want to make "main project on Web Based Application."

Posted by saurabh vyas on August 14, 2008 at 12:46 AM PDT #

give me project details

Posted by parag balapure on October 03, 2008 at 07:59 PM PDT #

hmmm the good project. thanks

Posted by kanka on June 01, 2009 at 11:36 PM PDT #

Contact Super Delegates

22nd April, PA Primary, let’s make Hillary win…
Here is the list of Super Delegates who are supporting Hillary from PA

Allyson Y Schwartz
John P Murtha
Joe Sestak
Ed Rendell
Paul F Kanjorski
Marcel Groen
Ruth C. Rudy
T.J. Rooney
Jean A. Milko
Ian Murray
Evelyn D. Richardson
Rena Baumgartner
Let’s urge them to Keep Pledge to vote for Clinton.
Here is the list of Obama Supporters

Patrick J. Murphy
Chaka Fattah
Leon Lynch
Carol Ann Campbell
Robert P. Casey, Jr.
Let’s urge them to switch their Convention voting pledge from Barack Obama to Clinton
And here is the list of Un-committed Delegates

Ronald R. Donatucci
Robert Brady
Michael F Doyle
Christopher P Carney
Tim Holden
Jason Altmire
William M. George
Sophie Masloff
Let’s urge them to end their Uncommitted stance, and make a public pledge to vote for Clinton.

Posted by TARSUS on June 14, 2009 at 04:35 AM PDT #

Thanks Administrator Thanks Administrator

Posted by Reklam on December 22, 2009 at 06:02 AM PST #

Thanks admin good info good blog

Posted by Reklam on December 26, 2009 at 10:02 PM PST #

its look hard. :(

Posted by 3gp videolar on December 27, 2009 at 03:35 AM PST #

Thanks admin good info good blog.Tesekkürler cok güzel blog.

Posted by sue oyunlari on February 14, 2010 at 05:22 AM PST #

useful article. thanks

Posted by Telefon başvurusu on February 22, 2010 at 08:08 AM PST #

thanks admin

Posted by B2b on February 22, 2010 at 08:09 AM PST #

Thanks for this useful post

lockerzdavetiyesi.info

Lockerz,Lockerzdavetiyesi,Lockerz Davetiyesi,lockerzdavetiyesi.info

Posted by lockerzdavetiyesi.info on March 06, 2010 at 07:28 AM PST #

valla tebrik ederim iyi bir calisma

Posted by woldemort on June 02, 2010 at 09:24 PM PDT #

Çok çok çok teşekkürler

Posted by Alper on July 15, 2010 at 05:41 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

poting

Search

Top Tags
Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today