NetBeans IDE Field Guide

Size: px
Start display at page:

Download "NetBeans IDE Field Guide"

Transcription

1 NetBeans IDE Field Guide Copyright 2005 Sun Microsystems, Inc. All rights reserved. Table of Contents Developing Web Applications...2 Representation of Web Applications in the IDE...3 Project View of Web Applications...3 File View of Web Applications...3 Adding Files and Libraries to Your Web Application...5 Creating Web Pages and Other Public Files...7 Creating Classes, Servlets, and Other Private Files...7 Adding External Resources to Your Project...8 Adding Tags and Tag Libraries...9 Editing and Refactoring Web Application Files...9 Completing Tags...10 Expanding Abbreviations for JSP Files...11 Manually Editing the Deployment Descriptor...12 Refactoring Web Components...13 Deploying a Web Application...14 Customizing Contents of the WAR File...14 Undeploying a Web Application...15 Redeploying a Web Application...15 Creating a WAR File...15 Deploying to a Different Tomcat Server...15 Testing and Debugging Your Web Application...16 Checking For JSP Errors...17 Viewing a JSP File's Servlet...17 Viewing a File in a Web Browser...17 Passing Request Parameters to a Web Application...18 Debugging JSP and Tag Files...18 Creating and Deploying Applets...18 Creating an Applet...19 Running and Debugging an Applet in the Applet Viewer...19 Running an Applet in a Web Browser...19 Packaging an Applet into a JAR File...20 Packaging an Applet into a WAR File...20 Setting Applet Permissions...20 Changing the IDE's Default Web Browser...21 Monitoring HTTP Transactions...21 Setting Up the HTTP Monitor...22 Setting Up the HTTP Monitor For Servers Started Outside of the IDE...22 Analyzing the Collected Data...24 Replaying HTTP Requests...27 NetBeans IDE Field Guide, Developing Web Applications, 1

2 Developing Web Applications NetBeans IDE is an ideal environment for developing Web applications. The IDE eliminates a lot of the nuisances you normally would encounter, particularly in setting up the application and in the steps between coding, deploying, debugging, and redeploying your application. And since Ant is the basis for this automation, there are no proprietary mysteries you need to unravel if you want to make the project work without the IDE as an intermediary. The following are some of the things the IDE does to make Web application development easier: Provides a built-in Tomcat Web server on which to deploy, test, and debug your applications. Sets up the file and folder structure of a Web application for you. Generates and maintains the content of deployment descriptors, including the registering of any servlets that you add to your project. Generates and maintains an Ant script with targets (commands) for compiling, cleaning, testing, WAR file creation, and deployment to a server. This script saves you from having to manually move files to the Web server. Ensures that the configuration files that appear in the WEB-INF folder of your application are not deleted when you run the Clean command to remove results of previous builds. Provides syntax highlighting, code completion, and other aids for editing servlet, JSP, HTML, and tag library files. Provides the Compile JSP command, which enables you to detect syntax errors in JSP files before deploying to your server, whether the errors occur at compile time or during the translation of the JSP file into a servlet. Provides comprehensive debugging support, which includes stepping into JSP files and tracking HTTP requests. This chapter focuses on issues specific to Web applications, such as creating and editing Web components, debugging HTTP transactions, etc., but does not include information on project creation. See Chapter 3 for information on creating projects. Most of the topics in this chapter assume that you are using the Tomcat Web server, but it is also possible to use the Sun Java System Application Server (SJSAS), which supports full J2EE applications and includes full support for Web services. Most of the tasks detailed here that involve the Tomcat server are very similar to the equivalent tasks you would perform if deploying to SJSAS. See Chapter 10 for more information on working with the Sun Java System Application Server and Chapter 9 for information on developing, exposing, and consuming Web services. NetBeans IDE Field Guide, Developing Web Applications, 2

3 Representation of Web Applications in the IDE Web applications are based on a somewhat intricate architecture where the development-time layout of files differs from that of a built application. The IDE helps you manage this process by: Providing a development-time oriented view of your project in the Projects window. This view gives you easy access to your sources and information about your classpath but hides build results and project metadata. Perhaps more importantly, working in the Projects window ensures that none of the files you create will be inadvertently deleted when you run the Clean command on your project (as could happen, for example, if you worked directly in the WEB-INF folder of a built application). Providing a file-oriented view of your project in the Files window. This window is particularly useful for accessing and customizing your build script and for browsing your project outputs, such as the project's WAR file and its contents. Creating and maintaining an Ant script, which is used when you run typical commands such as Build Project and Run Project. Among other things, the Ant script automates the placement of your files in the built application, the packaging of those files into a WAR file, and deployment to the specified server. Project View of Web Applications The Projects window provides a logical representation of the application's source structure, with nodes for the following: Web Pages (for HTML, JSP, and image files that users of the application will have direct access to through their Web browsers) Source Packages (for Java source packages, which in turn contain servlets and other Java classes). Test Packages (for unit tests) Configuration Files (for your deployment descriptor and other files) Web Services (where you can create and register Web services see Chapter 9 for more on development of Web services) Libraries (where you can add libraries or include the results of other IDE projects) Test Libraries (where you can add any libraries necessary for running unit tests on your application) File View of Web Applications If you open the Files window, you will see the physical organization of the files on disk (as shown in Figure 6-1) and find that this organization is consistent with the Apache recommendation for organizing source files (see Web Application Structure on page XXX). The IDE also adds the nbproject (to hold project metadata) and test (for unit tests) folders, but these are not included in the final built application. NetBeans IDE Field Guide, Developing Web Applications, 3

4 Figure 6-1 Files window with Web application folder structure When you build the application, either through the IDE or by directly running an Ant target, a build folder is created to hold the compiled classes and the dist folder is created to hold the generated WAR file as seen in Figure 6-2. Figure 6-2 Files window showing the structure of the built WAR file Web Application Structure Apache Jakarta provides guidelines on how to structure your Web applications to ensure that they work properly with the Tomcat server. When you create a project in the IDE and select the Jakarta source structure, this structure is respected. (Similarly, you can also set up a project to use the Java BluePrints structure, which is preferred if you will be deploying to the Sun Java System Application Server.) The following is a quick rundown on the important structural elements of the built application according to the Jakarta guidelines: NetBeans IDE Field Guide, Developing Web Applications, 4

5 The root folder (known as the document base), which contains all of the other files in folders in the application. Files that are directly available to the users of the application through their Web browsers, such as HTML files, images, and JSP files. The WEB-INF folder, which contains the deployment descriptor file (web.xml) and the classes, lib, tags, and other folders and files. The contents of WEB-INF comprise the bulk of the application and are not directly available to users. The classes folder contains compiled class and servlet files with their package hierarchy reflected by sub-folders. You can find additional information on Tomcat source structure at See Table 6-1 for information on how the various source elements of a Web application map to their representation in the IDE and where they end up in the deployed application. Table 6-1: Matrix of Web Application Elements and Their Representation in the IDE Content Representation in the Projects Window Representation in the Files Window Location Within the Built WAR File (located in the dist folder) Web pages Web Pages node web folder root of the file Java source files, servlets, etc. Source Packages node src folder WEB-INF/classes folder unit tests Test Packages node test folder N/A deployment descriptor (web.xml) Tomcat context configuration file (context.xml) Configuration Files node web/web-inf folder WEB-INF folder web/meta-inf folder libraries Libraries node web/web-inf/lib folder Test classpath entries Test Libraries node test folder N/A project metadata including build script Project Properties dialog box, which you can open by right-clicking the project's node and choosing Properties. build.xml file, nbproject folder META-INF folder WEB-INF/lib folder N/A Adding Files and Libraries to Your Web Application Once you have created a Web project through the New Project wizard, you can start populating it with Web pages and code. The most straightforward way to create files is by opening the Projects window and rightclicking the project's node or the specific folder where you want to place the file and choosing New and then a template from the submenu. See Figure 6-3. A short wizard appears for the template enabling you to set the name and other characteristics of the file. In general, the wizard NetBeans IDE Field Guide, Developing Web Applications, 5

6 guides you to help make sure that the files are placed in an appropriate directory to fit the structure of a well-designed Web application. NetBeans IDE Tip The New submenu of a node's contextual menu directly displays a selection of commonly used templates. If you want to see the full selection, choose New File/Folder. The templates are grouped into several categories, such as Java Classes, Web, Database. In addition to servlet and JSP file templates, the Web category contains templates for filters, Web application listeners, tag files, and tag handlers, which contain useful sample code for those specific types of files. Figure 6-3 Creating a new servlet from a package's contextual menu Conceptually, files in a Web application break down into a few different types of files, the function of which determines where you place the file in the application. The main types of files that you need to add to the project are: Web pages and other public files, meaning files that users of the application can access directly through their Web browsers. Typically these include JSP files, HTML files, and image files. Private files, meaning files that are not directly viewable to the end users and which typically do the bulk of the processing in the application. These include Java classes, JSP files, servlets, and tag libraries and end up within the web/web-inf/classes folder of the compiled Web application. External resources, files created outside of the project that the files in the NetBeans IDE Field Guide, Developing Web Applications, 6

7 project depend on. These can include tag libraries, JAR files that are output from other IDE projects, and other JAR files and are kept within the WEB- INF/lib folder of the compiled Web application. In addition, there are configuration files such as the deployment descriptor (web.xml) and files specific to the server you are deploying to, but the IDE generates and maintains these files for you. For example, if you create a servlet in the IDE, the servlet is registered in the web.xml file automatically. NetBeans IDE Tip Tag libraries can be added to your Web application as libraries or as source. See Adding Tags and Tag Libraries on page XXX for more information on working with tag libraries. Creating Web Pages and Other Public Files Generally you add Web pages and other public files directly within the Web Pages node of the Projects window or in a folder of your creation within that node. When the application is built, these files are placed by the project's Ant script in the application's web folder. To add a publicly viewable HTML file, right-click the Web Pages node and choose New HTML. To add a publicly viewable JSP file, right-click the Web Pages node and choose New JSP. The ensuing wizard enables you to specify whether the JSP file uses standard syntax (and has the.jsp extension) or uses XML syntax (has the.jspx extension). You can also have the file created as a fragment (using the.jspf extension), which you would later reference from other pages with include statements. Creating Classes, Servlets, and Other Private Files As with general Java projects, classes are organized within packages under the Source Packages node. For most projects, this node corresponds with a folder on your disk called src. When the application is built, these files are placed by the Ant script in the application's WEB- INF/classes directory. To add a class to your project, right-click the Source Packages node or the node of a specific package and choose New Java Class. If you have not created any package for the class you are adding, you can do so in the wizard as you are creating the class. To add a servlet to your project, right-click the Source Packages node or the node of a specific package and choose New Servlet. The wizard for creating the servlet also guides you through registering the servlet in the application's deployment descriptor (web.xml file). If you would like to add a file based on a more specific template, right-click a package node and choose New File/Folder to get a broader list of templates, including some for JavaBeans components,.properties files, XML files, and specialized Web components. Note that many of the Web templates have useful skeleton code and suggestions within the comments to get you started on developing these kinds of objects. See Table 6-2 for a list of templates that you can find in the Web category of the New File wizard. Table 6-2: Web Templates Template Description JSP Enables you to create a JSP file (standard syntax), JSP document (XML syntax), or a JSP fragment (which would be statically referenced from another file). NetBeans IDE Field Guide, Developing Web Applications, 7

8 Template Servlet Filter Web Application Listener Tag Library Descriptor Tag File Tag Handler HTML Web Service Message Handler Web Service Client Description Creates a Java class which extends the HttpServlet class. Also enables you to register the servlet in the project's deployment descriptor (web.xml) file. Creates a Java class which implements the javax.servlet.filter interface. Filters enable you to modify HTTP requests to a servlet and responses from the servlet. In the wizard, you can create either a basic filter or one that wraps the ServletRequest and ServletResponse objects. In the template's wizard, you can register the filter in the project's deployment descriptor (web.xml) file. Creates a Java class which implements one or more of the listener interfaces available for servlets, such as ServletContextListener and HttpSessionListener. Depending on the interfaces you select the wizard, the created class will listen for events, such as when servlet contexts is initialized or destroyed, the servlet session is created or destroyed, or when attributes are added to or removed from a context or session. In the template's wizard, you can register the listener in the project's deployment descriptor (web.xml) file. Creates a descriptor for a custom tag library. You can then register tag files and tag handlers in this file manually or when you use the New File wizard to create new tag files and tag handlers. Creates an empty.tag file with comments suggesting JSP syntax elements that you can use to create a custom tag. Creates a Java class for custom JSP tags. The template includes code comments with sample code and suggestions for how you might go about creating the custom tags. Creates an HTML with the basic tags entered. Creates a simple Web service. See Chapter 9 for more information on extending Web services with Web applications. Creates a SOAP-based message handler for Web services. See Chapter 10 for more information on consuming Web services with Web applications. Creates a Web service client based on JSR 109. See Chapter 9 for more information on consuming Web services with Web applications. Adding External Resources to Your Project If your Web application needs to be packaged with any libraries, you can add them through the Libraries node. If your project has been set up to work with the Tomcat server, the JSP and servlet libraries are included automatically and listed under a subnode for the Tomcat server. You can add external resources to your project in one of the following three forms: An individual folder or JAR file. A cluster of resources (or library ). This cluster might include multiple JAR files, sources for the JAR files (which are necessary for code completion or if you want to step through the library's code with the debugger), and Javadoc documentation. You can create such a cluster in the Library Manager (Tools menu). The output of another IDE project. To add an individual folder or JAR file to your project, right-click the Libraries node of your project, choose Add JAR/Folder, and navigate to the folder or JAR file in the file chooser. NetBeans IDE Field Guide, Developing Web Applications, 8

9 To add a cluster of related resources to your project, right-click the Libraries node, choose Add Library, and select the library from the list in the Add Library dialog box. If the library you are looking for is not there, you can add it to the list by choosing Manage Libraries. NetBeans IDE Tip Besides providing a way to cluster resources, the Library Manager makes it easy to access commonly used resources. Even if you do not need to cluster resources, you still might want to add individual resources to the Library Manager to save yourself from having to dig through file choosers to add resources to other projects. To add the results of another IDE project, right-click the Libraries node of the current project, choose Add JAR/Folder, and navigate to the project's folder on your disk. In the file chooser, NetBeans IDE project folders are marked with the icon. NetBeans IDE Tip If you want to add a JAR file or the output of a project to the WAR file without making it part of the project's compilation classpath, you can do so through the Packaging node in the Project Properties dialog box. See Customizing Contents of the WAR File on page XXX. Adding Tags and Tag Libraries Tags and tag libraries can be added to a Web project in any of the following forms: Packaged in a JAR file containing a tag library descriptor file (TLD) and the associated tags, in the form of tag files (using JSP syntax) and/or tag handlers (written in Java). Such tag libraries appear in a Web application's WEB- INF/lib folder or in the server's shared libraries folder. You can add a tag library to a Web project through the Web project's Libraries node (see Adding External Resources to Your Project on page XXX). If you are developing a tag library from scratch, you can create a Java Library project for library and then add that library to a Web project by right-clicking the project's Libraries node and choosing Add Project. See Chapter 3 for information on creating Java Library projects. As tag files (using either standard or document syntax) included in the Web application's WEB-INF/tags folder. You can add new tag files to your project by right-clicking the project's node and choosing New File/Folder and then selecting the Tag File template from the Web category in the wizard. As a TLD file located in the WEB-INF/tlds folder and tag handlers (written as Java files) within the Source Packages node. You can add new TLD files and tag handlers to your project by right-clicking the project's node and choosing New File/Folder and then selecting the templates from the Web category in the wizard. Editing and Refactoring Web Application Files The IDE's Source Editor provides a lot of features that make typing and changing of code for various Web application components easier. This section goes over a few of the features that are particularly useful for Web applications. See Chapter 4 for more information on IDE editing and refactoring features. NetBeans IDE Field Guide, Developing Web Applications, 9

10 Completing Tags The IDE enables you to have tags and tag attributes completed automatically in JSP, HTML, and XML files. The tag completion feature not only reduces the number of keystrokes that you type but it also provides popup documentation for the possible ways to complete the tag or attribute that you are typing as shown in Figure 6-4. Figure 6-4 The code completion feature in a JSP File Open up the tag completion popup by typing the beginning of a tag and pressing Ctrl-Space or waiting a second for code completion to kick in automatically. If there is only one way to complete the word you are typing, the end of the word is filled in automatically. If there are multiple ways to complete the tag, a popup list of those possibilities is displayed. You can keep typing to narrow the list or select the text you want using the mouse or arrow keys to select the word you want. For example, if you want to add the following statement in a JSP file: <jsp:usebean id="hello" scope="page" class="org.mydomain.mypackage.myclass" /> you can enter it in the following steps (don't worry the number of steps illustrated here may seem daunting, but it is only because they are presented in such minute detail): 1. Type <jsp:u 2. Press Ctrl-Space (sebean is appended). 3. Type i 4. Press Ctrl-Space (d= is appended with the insertion point left between the quotation marks). 5. Type hello 6. Press the right arrow key and then the spacebar 7. Type s 8. Press Enter (cope= is appended with the insertion point left between the quotation marks). 9. Type p NetBeans IDE Field Guide, Developing Web Applications, 10

11 10.Press Ctrl-Space (age is appended). 11.Press the right arrow key twice. 12.Type c 13.Press Enter (lass= is appended with the insertion point left between the quotation marks). 14.Type o 15.Press Ctrl-Space (rg is appended, assuming that the class is part of your project). 16.Type a period (.) and press Ctrl-Space (mydomain is filled in). 17.Type a period (.) and press Ctrl-Space (mypackage is filled in). 18.Type a period (.) and press Ctrl-Space (MyClass is filled in). 19.Press the right arrow key twice and type /> See Chapter 4: Generating Code Snippets for information on completing Java expressions and configuring code completion. Expanding Abbreviations for JSP Files For commonly used JSP code snippets, you can take advantage of abbreviations in the Source Editor to reduce the number of keystrokes. Abbreviations are expanded when you type the abbreviation and then press the spacebar. See Table 6-3 for a list of abbreviations for JSP files. You can also expand abbreviations for other types of files. See Chapter 4, Table 4-1 for a list of abbreviations for Java classes. If an abbreviation is the same as a text that you want to type (i.e. you do not want it to be expanded into something else), press Shift-Space to keep it from expanding. You can modify the list of abbreviations in the Abbreviations dialog box for a type of file. See Chapter 4, Adding, Changing, and Removing Abbreviations. Table 6-3: JSP Abbreviations in the Source Editor Abbreviation Expands to ag ap ar cfgi oup oupl pcg pcgn pcgs pcr pcs rg sg sp application.getvalue(" application.putvalue(" application.removevalue(" config.getinitparameter(" out.print(" out.println(" pagecontext.getattribute(" pagecontext.getattributenamesinscope( pagecontext.getattributesscope(" pagecontext.removeattribute(" pagecontext.setattribute(" request.getparameter(" session.getvalue(" session.putvalue(" NetBeans IDE Field Guide, Developing Web Applications, 11

12 Abbreviation sr jspf jg jspg jspi jspp jsps jspu pg pga pgb pgc pgerr pgex pgie pgim pgin pgit pgl pgs tglb Expands to session.removevalue(" <jsp:forward page=" <jsp:getproperty name=" <jsp:getproperty name=" <jsp:include page=" <jsp:plugin type=" <jsp:setproperty name=" <jsp:usebean id=" page page autoflush=" page buffer=" page contenttype=" page errorpage=" page extends=" page iserrorpage=" page import=" page info=" page isthreadsafe=" page language=" page session=" taglib uri=" Manually Editing the Deployment Descriptor Though the IDE guides you through the adding of entries for the deployment descriptor (web.xml file) as you add servlets, filters, and listeners to your project, you might have occasion to edit the file by hand. To open the deployment descriptor in the Source Editor, open the Projects window, expand the Configuration Files node (or the Web Pages Web-INF node) and double-click the web.xml file. The file opens as a multi-tab document in the Source Editor with the Overview tab open (as seen in Figure 6-5). You can edit different parts of the web.xml file with the visual editors for different elements of the file (Overview, Servlets, Filters, and Pages) or you can click the XML tab to directly edit the file's XML source (see Figure 6-6). Figure 6-5 Deployment descriptor visual editor NetBeans IDE Field Guide, Developing Web Applications, 12

13 Figure 6-6 Deployment descriptor XML editor Refactoring Web Components NetBeans IDE's refactoring support extends to Web applications and enterprise applications. For example, you can do the following: NetBeans IDE Field Guide, Developing Web Applications, 13

14 Rename classes, methods, and fields of servlets, tag handlers, and other Web components. See Chapter 4, Renaming All Occurrences of the Currently Selected Class, Method, or Field Name Move classes to a different packages or projects (resulting in the class being packaged in a different WAR file). See Chapter 4, Moving a Class to a Different Package. Change method parameters including parameter names, parameter types, method visibility, adding method parameters or removing method parameters. See Chapter 4, Changing a Method's Signature. Changing visibility of fields and adding getter and setter accessor methods. See Chapter 4, Generating Read/Write Properties. When you rename a Web component class (such as a servlet or tag handler), any corresponding name entries in the application's deployment descriptor (web.xml file) and/or tag library descriptor (TLD) are updated as well. When you move a class and the deployment descriptor as affected, you are prompted with a Confirm Changes dialog box to make sure that you want to process changes to the deployment descriptor. Important Be careful not to rename or change the parameters of a servlet method that must be implemented with a given name according to the Servlet or Enterprise JavaBeans specifications. Deploying a Web Application By default, a Web application is deployed to the server you have specified when you run that project. For applications that you deploy to the Tomcat server, the application is deployed in place, meaning that the IDE creates an XML file that is placed in the server's conf/catalina/localhost/ directory and points Tomcat to the IDE project's build directory where the applications files reside. When you build a Web project in the IDE, a WAR file is also created, which you can manually deploy to a server. Customizing Contents of the WAR File By default, a Web project's generated WAR file includes: All files displayed within the project's Web Pages node, including the web.xml and context.xml files. Compiled class files of the source files within Java Sources node plus any other files placed there without the.java and.form file extensions. Any libraries that you have added to the project's Libraries node. You can also add JAR files to the WAR file and filter out contents that would normally appear. To customize a WAR file's contents: 1. Right-click the project's node in the Projects window and choose Properties. 2. Select the Build Packaging node. NetBeans IDE Field Guide, Developing Web Applications, 14

15 3. If you want to filter out contents from the generated WAR file, modify the regular expression in the Exclude From WAR File field. 4. If you want to add additional folders or files, do so through Add JAR/Folder, Add Library, or Add Project buttons. The Add JAR/Folder button enables you to add individual JAR files or folders, whether or not they come from IDE projects. The Add Library button enables you to add any JAR files or clusters of JAR files that you have designated in the IDE's Library Manager. The Add Project button enables you to add the JAR file that is output from another IDE project. When you add an IDE project to the WAR file, that project's JAR file is rebuilt every time you build the Web application project. Undeploying a Web Application When you stop a Web application that you have run through the IDE, the application still remains deployed through a reference to that application in the form of an XML file in Tomcat's conf/catalina/localhost directory. To undeploy an such an application from Tomcat: 1. Open the Runtime window. 2. Expand the Servers node, then expand the node for the Tomcat server and the server's Web Applications node. 3. Right-click the node for the running Web application and choose Undeploy. Redeploying a Web Application To remove your application from the server and then redeploy it, right-click the project's node and choose Redeploy Project. Creating a WAR File When you run the Build Project command on a Web project in the IDE, a WAR file is created automatically and placed in the dist folder of the project. You can access this file and browse its contents in the Files window. Deploying to a Different Tomcat Server The IDE comes bundled with the Tomcat server, which facilitates Web application development and testing. If you have a different Tomcat installation that you want to test on and/or deploy to, you can register that installation with the IDE. You can easily switch your application to work with the different server installations. This is particularly useful if you want to develop and test on one installation and then deploy to a production environment. To set up the IDE to recognize a different Tomcat installation: 1. Choose Tools Server Manager. 2. Click the Add Server button. 3. On the Choose Server page of the wizard that opens, select a server from the Server combo box, enter an IDE display name for that server in the Name field, and click Next. NetBeans IDE Field Guide, Developing Web Applications, 15

16 4. On the Tomcat Server Instance Properties page, specify the Tomcat installation directory (and base directory if it is a shared installation) and fill in a user name and password. You can also determine whether to enable the IDE's HTTP Monitor. If the HTTP Monitor is enabled, you can monitor your application's server requests, cookies, and so on, which makes it easier to debug your application. However, this option slows down the server, so you will probably want this option disabled if you are using this is your production server. See Monitoring HTTP Transactions on page XXX for information on using the HTTP Monitor. 5. Verify that the server is not using a port number used by another server. In the IDE, you can view the server's port number by mousing over the server's node and viewing the node's tooltip. If another server instance is using the same port, you need to stop one of the servers and change the port it is using. Stop the server right-clicking the server's node, choosing Start/Stop Server and clicking Stop Server. Then right-click the server node, choose Properties, and change the Server Port property. Restart the server by right-clicking the node, choosing Start/Stop Server and clicking Start Server. 6. If you have any existing Web applications within the IDE that you want to run on the newly added server, modify the properties for each project to use the server. You can do so by right-clicking the project's node in the Projects window, choosing Properties, selecting the Run node, and choosing the server from the Server combo box. NetBeans IDE Tip If you later want to change the server's configuration, you can access the server's properties opening the Runtime window, expanding the Servers node, right-clicking the specific server's node and choosing Properties. Testing and Debugging Your Web Application NetBeans IDE provides a rich environment for troubleshooting and optimizing your Web applications. Some of the features to ease testing of Web applications include: The Compile JSP command, which enables you to check individual JSP files for errors before deploying to the server. Debugger integration with JSP files, which means that you can set breakpoints in JSP files and step through JSP in the debugger (as opposed to having to step through the generated servlet code). Ability to step through tag files. Ability to evaluate Expression Language (EL) expressions in JSP files during a debugging session (by mousing over the expression or setting a watch). The HTTP Monitor, which keeps track of HTTP communication between servlets and the server. This feature is covered in detail under Monitoring HTTP Transactions on page XXX. See Chapter 5 for more information on the IDE's general debugging features that these features extend. NetBeans IDE Field Guide, Developing Web Applications, 16

17 Checking For JSP Errors JSP files are not compiled like typical Java files before they are deployed. Instead, they are compiled by the server after they have been deployed (where in fact they are first translated to servlets, which are then compiled). This makes it more cumbersome to correct errors that normally are detected when compiling, since it forces you to deploy the application, discover the error, undeploy, correct the error, and redeploy. However, NetBeans IDE enables you to compile JSP files to check for errors before you package and deploy the application. You can either compile individual JSP files manually or specify that they be compiled when you build the project. To compile a JSP file manually, select the file in the Projects window or in the Source Editor and select Build Compile File or press F9. To have all JSP files compiled when you run the Build Project command, right-click the project's node, choose Properties, select the Compiling node, and select the Test Compile All JSP Files During Builds checkbox. The compilation results are reported in the Output window, where you can discover any errors, whether they occur in the translation to the servlet or in the compilation of the servlet. The compiled files themselves are placed in the project's build/generated folder, which you can view from the Files window. These files are not used when you are building and packaging the application for deployment. Viewing a JSP File's Servlet The generation of a servlet from a JSP file happens dynamically on the server where the Web application is deployed. You can view this generated servlet once you have run the project or the specific JSP associated with it by right-clicking the file and choosing View Servlet. NetBeans IDE Tip If you would like to see the servlet code that is generated when you run the Compile JSP command, open the Files window open the build/generated/src folder, and navigate to the file which is named according to the JSP file name, but with a _jsp suffix and.java extension. Viewing a File in a Web Browser You can open components of a Web application in a Web browser from the IDE. To view a specific JSP page in a Web browser, you need to run that file individually (by right-clicking the file in the Source Editor or pressing Shift-F6). To open an HTML file in the Web browser, right-click the HTML page's node in the Projects window and choose View. NetBeans IDE Tip The View command for HTML files is not available from the Source Editor. If you want to view the current HTML file in the Source Editor without your fingers leaving the keyboard, press Ctrl-Shift-1 to jump to the file's node in the Projects window, press Shift-F10 to open the node's contextual menu, press the down arrow to select View, and press Enter. NetBeans IDE Field Guide, Developing Web Applications, 17

18 Passing Request Parameters to a Web Application You can manually test the way the Web application will respond to certain input by running the application with certain request parameters specified ahead of time. To pass request parameters to a JSP page: 1. Right-click the JSP file's node and choose Properties. 2. In the Request Parameters property, enter the parameters in URL query string format (where the expression begins with a URL, continues with a question mark (?) to mark the beginning of the query, and completed with the parameters as name/value pairs, where the pairs separated by ampersands (&)). To pass request parameters to a servlet: 1. Right-click the servlet's node in the Projects window, and choose Tools Set Servlet Execution URI. 2. In the dialog box, append a question mark plus the name/value pairs, with each pair separated by an ampersand. Debugging JSP and Tag Files One of the IDE's features that has long made NetBeans IDE a favorite with Web developers is the ability of the debugger to step into JSP files. You can set breakpoints in JSP files and step through the JSP line by line while monitoring the values of variables and other aspects of the running program. NetBeans IDE 4.1 adds the ability to step into tag files. To set a breakpoint in a JSP or tag file, select the line where you would like to pause execution and press Ctrl-F8. See Chapter 5 for more information on debugging. Creating and Deploying Applets NetBeans IDE does not have a specific project type for applets, so the development cycle for applets is a little different than for other types of projects. You can not designate an applet as a main project, which means that several project-specific commands (such as Run Project) do not apply to applets. However, you can still create, test, and deploy applets fairly easily. The general outline of applet development is as follows: 1. Create a Java Library project to hold the applet. 2. Create an applet from one of the templates in the New File wizard and fill in code for the applet. 3. Test the applet in the JDK's applet viewer by right-clicking the applet's node in the Projects window and choosing Run File. 4. Create a JAR file for the applet by right-clicking the applet's project node and choosing Build Project. 5. If you want to add the applet to a Web application, add the applet's project (or just the applet's JAR file) through the Web project's Libraries node. NetBeans IDE Field Guide, Developing Web Applications, 18

19 Creating an Applet To create an applet: 1. Choose New Project, select the General category, select the Java Library template, and click Next. 2. Enter a name and location for the project and click Finish to exit the wizard. 3. In the Projects window, expand the node for the project you have just created. Then right-click the Source Packages node and choose New File/Folder. 4. In the New File wizard, select one of the available applet templates. There are four available: Java Classes category, JApplet template. This template extends javax.swing.japplet and is recommended over the Applet template, which is based on the less flexible java.applet.applet class. Java GUI Forms category, JApplet template. This template extends javax.swing.japplet and enables you to use the IDE's Form Editor to visually design your applet. This template is recommended over the JApplet template in the AWT Forms sub-category. Java Classes category, Applet template. This template extends java.applet.applet. Java GUI Forms AWT Forms category, Applet template. This template extends java.applet.applet and enables you to use the IDE's Form Editor to visually design your applet. Click Next, specify a name and a package for the applet, and then click Finish. You can then code the applet, either by hand or with the assistance of the Form Editor. Running and Debugging an Applet in the Applet Viewer As you are developing the applet, you can use the JDK's applet viewer to test the applet's functionality. When you use the Run File and Debug File commands, the applet is automatically displayed in the applet viewer. To run an applet, right-click the applet's node in the Projects window and choose Run File. To start debugging an applet: 1. Set a breakpoint in the code by selecting the line where you first want execution to pause and press Ctrl-F8. 2. Right-click the applet's node in the Projects window and choose Debug File. Running an Applet in a Web Browser If you want to see how your applet behaves in an actual Web browser, you can open an HTML launcher for the applet. To run an applet in a Web browser: 1. Open the Files window and expand the project's build directory. 2. Right-click the HTML launcher file (it should have the same name as the applet class but with an HTML extension) and choose View. NetBeans IDE Field Guide, Developing Web Applications, 19

20 The applet opens in the default Web browser specified in the IDE. See Changing the IDE's Default Web Browser on page XXX if you would like to change the IDE's default Web browser. NetBeans IDE Tip If you want to customize the HTML launcher file, you can copy the generated launcher file into the folder that contains the applet source file. This prevents the launcher file from being overwritten every time you run the applet. When you run the applet or build the applet's project, the HTML file is copied into the folder with the compiled applet class. If you do not want this file to be included in the JAR that is created when you build the project, you can modify the filter for the JAR file's contents. In the Projects window, right-click the project's node and choose Properties. In the dialog box, select the Packaging node and modify the regular expression in the Exclude From JAR File field. For example, you could add a comma plus an expression like **/Myapplet.html to make sure that your launcher file (no matter which directory it is in) is excluded from the built JAR file. Packaging an Applet into a JAR File If you want to put an applet into a JAR file, you can do so by right-clicking the applet's project node in the Projects window and choosing Build Project. The applet is compiled and the compiled class files are placed in a JAR file in the dist folder, which you can view with the Files window. Packaging an Applet into a WAR File To add an applet to a Web application: 1. Put the applet into a JAR file. See Packaging an Applet into a JAR File above for information on how to do this in the IDE. 2. Right-click the Web application's project node in the Projects window and choose Properties. 3. In the Project Properties dialog box, select the Build Packaging node. 4. Click the Add Project button, navigate to the applet's project folder, and click Add Project JAR Files. Setting Applet Permissions When you create and run an applet through the IDE, an applet.policy is created with all permissions granted and is placed in the root folder of the project (which you can view through the Files window). You can modify this file by double-clicking its node to open it in the Source Editor. You can also specify a different policy file for the applet. To specify a different policy file: 1. Right-click the Web application's project node in the Projects window and choose Properties. 2. In the Project Properties dialog box, select the Run node. 3. In the VM Options field, modify the value of the -Djava. security.policy option to point to the policy file. NetBeans IDE Field Guide, Developing Web Applications, 20

21 Changing the IDE's Default Web Browser To change the IDE's default Web browser, choose Tools Setup Wizard and select a browser from the Web Browser combo box. If the IDE can not find a given Web browser on your system, you might need to specify the executable for that Web browser. To point the IDE to a Web browser that is listed in the Setup Wizard: 1. Choose Tools Options and expand the IDE Configuration Server and External Tools Settings Web Browsers node. 2. Select the subnode for the browser that you want and modify the Browser Executable property. To add to the IDE's list of Web browsers: 1. Choose Tools Options and expand the IDE Configuration Server and External Tools Settings Web Browsers node. 2. Right-click the Web Browsers node, choose New External Browser, type the browser's name, and click Finish. 3. Select the subnode for the added browser and modify the Browser Executable property to point to that browser's executable. Monitoring HTTP Transactions NetBeans IDE provides a built-in HTTP Monitor to help isolate problems with data flow from JSP and servlet execution on a Web server. There is no need to add logic to your Web application to trace HTTP requests and associated state information. The NetBeans IDE built-in HTTP Monitor can do this for you. When the IDE is configured with a Web container or a Web application is deployed with a NetBeans HTTP Monitor servlet filter and filter mapping, the HTTP Monitor will automatically record all HTTP requests made to the Web container. For each HTTP request that is processed by the Web container, the HTTP Monitor not only records the request, it also records state information maintained in the Web container. By using the HTTP Monitor, you can analyze HTTP requests, and store HTTP GET and HTTP POST requests for future analysis sessions. You can also edit these stored requests and replay them. This is a powerful feature to help isolate data flow and state information passed within an HTTP request to a Web container. HTTP requests are stored until you exit the IDE unless you explicitly save them. The following are some of the things that you can do with the IDE's HTTP Monitor: Analyze HTTP requests records. Save HTTP request records. Edit HTTP request records. Refresh request records. Sort HTTP request records. Delete HTTP request records. Replay HTTP request records. NetBeans IDE Field Guide, Developing Web Applications, 21

22 In the following sections, you will learn how to setup the HTTP Monitor, analyze the data the HTTP Monitor collects and replay recorded HTTP requests. Setting Up the HTTP Monitor When you run a Web application, the HTTP Monitor is generally automatically enabled. If the HTTP Monitor is not displayed in the bottom of the IDE, then verify the HTTP Monitor is enabled by performing the following tasks. 1. Expand the Runtime window's Servers node to show your registered Web server. Then right click the server's node and choose Properties. 2. Place a check box in the Enable HTTP Monitor property. 3. If the registered Web server is currently running, stop and restart it by right clicking your registered Web server under the Runtime window's Servers node and selecting Start / Stop Server. Figure 6-6 shows the Enable HTTP Monitor property on the Sun Java System Application Server 8 Properties dialog. Figure 6-6: Properties dialog box for the Sun Java System Application Server Setting Up the HTTP Monitor For Servers Started Outside of the IDE You can also use the HTTP Monitor on Web servers started outside the NetBeans IDE. To do so, execute the following tasks: NetBeans IDE Field Guide, Developing Web Applications, 22

23 1. Go to the directory where the NetBeans IDE is installed and copy the modules/org-netbeans-modules-schema2beans.jar and modules/org-netbeans-modules-web-httpmonitor.jar files to your Web module's WEB-INF/lib directory. 2. Add a filter declaration that is appropriate for your servlet's version to the top of your Web module's WEB-INF/web.xml file. Filters and filter mapping entries must be specified at the beginning of a deployment descriptor. See the examples below for filters for the servlets corresponding the 2.3 and 2.4 versions of the Servlet specification. A Servlet 2.4 filter declaration might look like the following: <filter> <filter-name>httpmonitorfilter</filter-name> <filter-class> org.netbeans.modules.web.monitor.server.monitorfilter </filter-class> <init-param> <param-name> netbeans.monitor.ide </param-name> <param-value> name-of-host-running NetBeans IDE:http-server-port </param-value> </init-param> </filter> <filter-mapping> <filter-name> HTTPMonitorFilter </filter-name> <url-pattern> /* </url-pattern> <dispatcher> REQUEST </dispatcher> <dispatcher> FORWARD </dispatcher> <dispatcher> INCLUDE </dispatcher> <dispatcher> ERROR </dispatcher> </filter-mapping> A Servlet 2.3 filter declaration might look like the following: <filter> <filter-name>httpmonitorfilter</filter-name> <filter-class> org.netbeans.modules.web.monitor.server.monitorfilter </filter-class> <init-param> <param-name> netbeans.monitor.ide NetBeans IDE Field Guide, Developing Web Applications, 23

24 </param-name> <param-value> name-of-host-running NetBeans IDE:http-server-port </param-value> </init-param> </filter> <filter-mapping> <filter-name> HTTPMonitorFilter </filter-name> <url-pattern> /* </url-pattern> </filter-mapping> A Web application can be monitored with the IDE HTTP Monitor from multiple NetBeans IDEs by adding additional init-param entries to the Servlet filter declaration in the Web deployment descriptor. For instance, you would an additional init-parm entry such as the one shown below: <init-param> <param-name> netbeans.monitor.ide </param-name> <param-value> name-of-2 nd -host-running NetBeans IDE:http-server-port </param-value> </init-param> IMPORTANT When you deploy the Web module you have been monitoring with the HTTP Monitor to a production server, remember to remove the Servlet filter and filter mapping declarations from the Web module's deployment descriptor. Otherwise, the Web module will be open for HTTP monitoring from those NetBeans IDEs specified in the init-param section(s) of the servlet filter in the Web module's deployment descriptor. Analyzing the Collected Data After you have setup the HTTP Monitor, you can use the HTTP Monitor to debug your Web application by observing data flow from your JSP page and servlet execution on the Web server. The HTTP Monitor records data about each incoming request. The HTTP Monitor is automatically displayed in the bottom of the IDE. A snapshot of the HTTP Monitor is shown in Figure 6-7. NetBeans IDE Field Guide, Developing Web Applications, 24

NetBeans IDE Field Guide

NetBeans IDE Field Guide NetBeans IDE Field Guide Copyright 2005 Sun Microsystems, Inc. All rights reserved. Table of Contents Introduction to J2EE Development in NetBeans IDE...1 Configuring the IDE for J2EE Development...2 Getting

More information

Glassfish, JAVA EE, Servlets, JSP, EJB

Glassfish, JAVA EE, Servlets, JSP, EJB Glassfish, JAVA EE, Servlets, JSP, EJB Java platform A Java platform comprises the JVM together with supporting class libraries. Java 2 Standard Edition (J2SE) (1999) provides core libraries for data structures,

More information

For Introduction to Java Programming, 5E By Y. Daniel Liang

For Introduction to Java Programming, 5E By Y. Daniel Liang Supplement H: NetBeans Tutorial For Introduction to Java Programming, 5E By Y. Daniel Liang This supplement covers the following topics: Getting Started with NetBeans Creating a Project Creating, Mounting,

More information

Development. with NetBeans 5.0. A Quick Start in Basic Web and Struts Applications. Geertjan Wielenga

Development. with NetBeans 5.0. A Quick Start in Basic Web and Struts Applications. Geertjan Wielenga Web Development with NetBeans 5.0 Quick Start in Basic Web and Struts pplications Geertjan Wielenga Web Development with NetBeans 5 This tutorial takes you through the basics of using NetBeans IDE 5.0

More information

Debugging Java Applications

Debugging Java Applications Debugging Java Applications Table of Contents Starting a Debugging Session...2 Debugger Windows...4 Attaching the Debugger to a Running Application...5 Starting the Debugger Outside of the Project's Main

More information

Web Application Architecture (based J2EE 1.4 Tutorial)

Web Application Architecture (based J2EE 1.4 Tutorial) Web Application Architecture (based J2EE 1.4 Tutorial) 1 Disclaimer & Acknowledgments Even though Sang Shin is a full-time employee of Sun Microsystems, the contents here are created as his own personal

More information

JBoss SOAP Web Services User Guide. Version: 3.3.0.M5

JBoss SOAP Web Services User Guide. Version: 3.3.0.M5 JBoss SOAP Web Services User Guide Version: 3.3.0.M5 1. JBoss SOAP Web Services Runtime and Tools support Overview... 1 1.1. Key Features of JBossWS... 1 2. Creating a Simple Web Service... 3 2.1. Generation...

More information

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc. WA2088 WebSphere Application Server 8.5 Administration on Windows Student Labs Web Age Solutions Inc. Copyright 2013 Web Age Solutions Inc. 1 Table of Contents Directory Paths Used in Labs...3 Lab Notes...4

More information

Building and Using Web Services With JDeveloper 11g

Building and Using Web Services With JDeveloper 11g Building and Using Web Services With JDeveloper 11g Purpose In this tutorial, you create a series of simple web service scenarios in JDeveloper. This is intended as a light introduction to some of the

More information

In this chapter, we lay the foundation for all our further discussions. We start

In this chapter, we lay the foundation for all our further discussions. We start 01 Struts.qxd 7/30/02 10:23 PM Page 1 CHAPTER 1 Introducing the Jakarta Struts Project and Its Supporting Components In this chapter, we lay the foundation for all our further discussions. We start by

More information

Getting Started with Web Applications

Getting Started with Web Applications 3 Getting Started with Web Applications A web application is a dynamic extension of a web or application server. There are two types of web applications: Presentation-oriented: A presentation-oriented

More information

Install guide for Websphere 7.0

Install guide for Websphere 7.0 DOCUMENTATION Install guide for Websphere 7.0 Jahia EE v6.6.1.0 Jahia s next-generation, open source CMS stems from a widely acknowledged vision of enterprise application convergence web, document, search,

More information

Complete Java Web Development

Complete Java Web Development Complete Java Web Development JAVA-WD Rev 11.14 4 days Description Complete Java Web Development is a crash course in developing cutting edge Web applications using the latest Java EE 6 technologies from

More information

Workshop for WebLogic introduces new tools in support of Java EE 5.0 standards. The support for Java EE5 includes the following technologies:

Workshop for WebLogic introduces new tools in support of Java EE 5.0 standards. The support for Java EE5 includes the following technologies: Oracle Workshop for WebLogic 10g R3 Hands on Labs Workshop for WebLogic extends Eclipse and Web Tools Platform for development of Web Services, Java, JavaEE, Object Relational Mapping, Spring, Beehive,

More information

Web Applications. Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html

Web Applications. Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html 2009 Marty Hall Using and Deploying Web Applications Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/

More information

JetBrains ReSharper 2.0 Overview Introduction ReSharper is undoubtedly the most intelligent add-in to Visual Studio.NET 2003 and 2005. It greatly increases the productivity of C# and ASP.NET developers,

More information

JBoss Portlet Container. User Guide. Release 2.0

JBoss Portlet Container. User Guide. Release 2.0 JBoss Portlet Container User Guide Release 2.0 1. Introduction.. 1 1.1. Motivation.. 1 1.2. Audience 1 1.3. Simple Portal: showcasing JBoss Portlet Container.. 1 1.4. Resources. 1 2. Installation. 3 2.1.

More information

Crystal Reports for Borland JBuilder

Crystal Reports for Borland JBuilder Embedding reports within JBuilder web applications projects Overview Contents With the recent addition of embedded reporting to the JBuilderX feature-set, it is now possible to process and render industry-standard

More information

Application Servers - BEA WebLogic. Installing the Application Server

Application Servers - BEA WebLogic. Installing the Application Server Proven Practice Application Servers - BEA WebLogic. Installing the Application Server Product(s): IBM Cognos 8.4, BEA WebLogic Server Area of Interest: Infrastructure DOC ID: AS01 Version 8.4.0.0 Application

More information

Using SQL Reporting Services with Amicus

Using SQL Reporting Services with Amicus Using SQL Reporting Services with Amicus Applies to: Amicus Attorney Premium Edition 2011 SP1 Amicus Premium Billing 2011 Contents About SQL Server Reporting Services...2 What you need 2 Setting up SQL

More information

How To Integrate IIS6 and Apache Tomcat

How To Integrate IIS6 and Apache Tomcat How To Integrate IIS6 and Apache Tomcat By Glenn Barnas / InnoTech Consulting Group www.innotechcg.com This is a step by step guide to installing Apache Tomcat 6.x on systems running IIS 6.0. The process

More information

Creating Java EE Applications and Servlets with IntelliJ IDEA

Creating Java EE Applications and Servlets with IntelliJ IDEA Creating Java EE Applications and Servlets with IntelliJ IDEA In this tutorial you will: 1. Create IntelliJ IDEA project for Java EE application 2. Create Servlet 3. Deploy the application to JBoss server

More information

Crystal Reports for Eclipse

Crystal Reports for Eclipse Crystal Reports for Eclipse Table of Contents 1 Creating a Crystal Reports Web Application...2 2 Designing a Report off the Xtreme Embedded Derby Database... 11 3 Running a Crystal Reports Web Application...

More information

Struts Tools Tutorial. Version: 3.3.0.M5

Struts Tools Tutorial. Version: 3.3.0.M5 Struts Tools Tutorial Version: 3.3.0.M5 1. Introduction... 1 1.1. Key Features Struts Tools... 1 1.2. Other relevant resources on the topic... 2 2. Creating a Simple Struts Application... 3 2.1. Starting

More information

Server-Side Web Development JSP. Today. Web Servers. Static HTML Directives. Actions Comments Tag Libraries Implicit Objects. Apache.

Server-Side Web Development JSP. Today. Web Servers. Static HTML Directives. Actions Comments Tag Libraries Implicit Objects. Apache. 1 Pages () Lecture #4 2007 Pages () 2 Pages () 3 Pages () Serves resources via HTTP Can be anything that serves data via HTTP Usually a dedicated machine running web server software Can contain modules

More information

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules IBM Operational Decision Manager Version 8 Release 5 Getting Started with Business Rules Note Before using this information and the product it supports, read the information in Notices on page 43. This

More information

Using the Query Analyzer

Using the Query Analyzer Using the Query Analyzer Using the Query Analyzer Objectives Explore the Query Analyzer user interface. Learn how to use the menu items and toolbars to work with SQL Server data and objects. Use object

More information

SW5706 Application deployment problems

SW5706 Application deployment problems SW5706 This presentation will focus on application deployment problem determination on WebSphere Application Server V6. SW5706G11_AppDeployProblems.ppt Page 1 of 20 Unit objectives After completing this

More information

PowerTier Web Development Tools 4

PowerTier Web Development Tools 4 4 PowerTier Web Development Tools 4 This chapter describes the process of developing J2EE applications with Web components, and introduces the PowerTier tools you use at each stage of the development process.

More information

Installation Guide of the Change Management API Reference Implementation

Installation Guide of the Change Management API Reference Implementation Installation Guide of the Change Management API Reference Implementation Cm Expert Group CM-API-RI_USERS_GUIDE.0.1.doc Copyright 2008 Vodafone. All Rights Reserved. Use is subject to license terms. CM-API-RI_USERS_GUIDE.0.1.doc

More information

CREATE A CUSTOM THEME WEBSPHERE PORTAL 8.0.0.1

CREATE A CUSTOM THEME WEBSPHERE PORTAL 8.0.0.1 CREATE A CUSTOM THEME WEBSPHERE PORTAL 8.0.0.1 WITHOUT TEMPLATE LOCALIZATION, WITHOUT WEBDAV AND IN ONE WAR FILE Simona Bracco Table of Contents Introduction...3 Extract theme dynamic and static resources...3

More information

Tutorial 5: Developing Java applications

Tutorial 5: Developing Java applications Tutorial 5: Developing Java applications p. 1 Tutorial 5: Developing Java applications Georgios Gousios gousiosg@aueb.gr Department of Management Science and Technology Athens University of Economics and

More information

As you learned about in Chapter 1, WebSphere Application Server V6 supports the

As you learned about in Chapter 1, WebSphere Application Server V6 supports the 23 J2EE Packaging, Enhanced EARs, and the Application Server Toolkit As you learned about in Chapter 1, WebSphere Application Server V6 supports the full Java 2 Platform, Enterprise Edition (J2EE) 1.4

More information

NetBeans IDE Field Guide

NetBeans IDE Field Guide NetBeans IDE Field Guide Copyright 2005 Sun Microsystems, Inc. All rights reserved. Table of Contents Extending J2EE Applications with Web Services...1 Consuming Existing Web Services...2 Implementing

More information

SDK Code Examples Version 2.4.2

SDK Code Examples Version 2.4.2 Version 2.4.2 This edition of SDK Code Examples refers to version 2.4.2 of. This document created or updated on February 27, 2014. Please send your comments and suggestions to: Black Duck Software, Incorporated

More information

How to test and debug an ASP.NET application

How to test and debug an ASP.NET application Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult

More information

Application Notes for Packaging and Deploying Avaya Communications Process Manager Sample SDK Web Application on a JBoss Application Server Issue 1.

Application Notes for Packaging and Deploying Avaya Communications Process Manager Sample SDK Web Application on a JBoss Application Server Issue 1. Avaya Solution & Interoperability Test Lab Application Notes for Packaging and Deploying Avaya Communications Process Manager Sample SDK Web Application on a JBoss Application Server Issue 1.0 Abstract

More information

Wakanda Studio Features

Wakanda Studio Features Wakanda Studio Features Discover the many features in Wakanda Studio. The main features each have their own chapters and other features are documented elsewhere: Wakanda Server Administration Data Browser

More information

Web Applications. For live Java training, please see training courses at

Web Applications. For live Java training, please see training courses at 2009 Marty Hall Using and Deploying Web Applications Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/

More information

FileMaker Server 10 Help

FileMaker Server 10 Help FileMaker Server 10 Help 2007-2009 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker, the file folder logo, Bento and the Bento logo

More information

Designing portal site structure and page layout using IBM Rational Application Developer V7 Part of a series on portal and portlet development

Designing portal site structure and page layout using IBM Rational Application Developer V7 Part of a series on portal and portlet development Designing portal site structure and page layout using IBM Rational Application Developer V7 Part of a series on portal and portlet development By Kenji Uchida Software Engineer IBM Corporation Level: Intermediate

More information

PTC Integrity Eclipse and IBM Rational Development Platform Guide

PTC Integrity Eclipse and IBM Rational Development Platform Guide PTC Integrity Eclipse and IBM Rational Development Platform Guide The PTC Integrity integration with Eclipse Platform and the IBM Rational Software Development Platform series allows you to access Integrity

More information

Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator

Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator Written by: Chris Jaun (cmjaun@us.ibm.com) Sudha Piddaparti (sudhap@us.ibm.com) Objective In this

More information

Creating Web Services Applications with IntelliJ IDEA

Creating Web Services Applications with IntelliJ IDEA Creating Web Services Applications with IntelliJ IDEA In this tutorial you will: 1. 2. 3. 4. Create IntelliJ IDEA projects for both client and server-side Web Service parts Learn how to tie them together

More information

Introduction to Eclipse

Introduction to Eclipse Introduction to Eclipse Overview Eclipse Background Obtaining and Installing Eclipse Creating a Workspaces / Projects Creating Classes Compiling and Running Code Debugging Code Sampling of Features Summary

More information

Table of Contents. Welcome... 2. Login... 3. Password Assistance... 4. Self Registration... 5. Secure Mail... 7. Compose... 8. Drafts...

Table of Contents. Welcome... 2. Login... 3. Password Assistance... 4. Self Registration... 5. Secure Mail... 7. Compose... 8. Drafts... Table of Contents Welcome... 2 Login... 3 Password Assistance... 4 Self Registration... 5 Secure Mail... 7 Compose... 8 Drafts... 10 Outbox... 11 Sent Items... 12 View Package Details... 12 File Manager...

More information

Application. 1.1 About This Tutorial. 1.1.1 Tutorial Requirements. 1.1.2 Provided Files

Application. 1.1 About This Tutorial. 1.1.1 Tutorial Requirements. 1.1.2 Provided Files About This Tutorial 1Creating an End-to-End HL7 Over MLLP Application 1.1 About This Tutorial 1.1.1 Tutorial Requirements 1.1.2 Provided Files This tutorial takes you through the steps of creating an end-to-end

More information

NASA Workflow Tool. User Guide. September 29, 2010

NASA Workflow Tool. User Guide. September 29, 2010 NASA Workflow Tool User Guide September 29, 2010 NASA Workflow Tool User Guide 1. Overview 2. Getting Started Preparing the Environment 3. Using the NED Client Common Terminology Workflow Configuration

More information

Intellicus Cluster and Load Balancing (Windows) Version: 7.3

Intellicus Cluster and Load Balancing (Windows) Version: 7.3 Intellicus Cluster and Load Balancing (Windows) Version: 7.3 Copyright 2015 Intellicus Technologies This document and its content is copyrighted material of Intellicus Technologies. The content may not

More information

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling

More information

DEPLOYING A VISUAL BASIC.NET APPLICATION

DEPLOYING A VISUAL BASIC.NET APPLICATION C6109_AppendixD_CTP.qxd 18/7/06 02:34 PM Page 1 A P P E N D I X D D DEPLOYING A VISUAL BASIC.NET APPLICATION After completing this appendix, you will be able to: Understand how Visual Studio performs deployment

More information

WS_FTP Professional 12

WS_FTP Professional 12 WS_FTP Professional 12 Tools Guide Contents CHAPTER 1 Introduction Ways to Automate Regular File Transfers...5 Check Transfer Status and Logs...6 Building a List of Files for Transfer...6 Transfer Files

More information

Microsoft Visual Studio Integration Guide

Microsoft Visual Studio Integration Guide Microsoft Visual Studio Integration Guide MKS provides a number of integrations for Integrated Development Environments (IDEs). IDE integrations allow you to access MKS Integrity s workflow and configuration

More information

Fairfield University Using Xythos for File Sharing

Fairfield University Using Xythos for File Sharing Fairfield University Using Xythos for File Sharing Version 7.0 Table of Contents I: Manage your Department Folder...2 Your Department Folder... 2 II: Sharing Folders and Files Inside of Fairfield U...3

More information

Specify the location of an HTML control stored in the application repository. See Using the XPath search method, page 2.

Specify the location of an HTML control stored in the application repository. See Using the XPath search method, page 2. Testing Dynamic Web Applications How To You can use XML Path Language (XPath) queries and URL format rules to test web sites or applications that contain dynamic content that changes on a regular basis.

More information

How To Set Up An Intellicus Cluster And Load Balancing On Ubuntu 8.1.2.2 (Windows) With A Cluster And Report Server (Windows And Ubuntu) On A Server (Amd64) On An Ubuntu Server

How To Set Up An Intellicus Cluster And Load Balancing On Ubuntu 8.1.2.2 (Windows) With A Cluster And Report Server (Windows And Ubuntu) On A Server (Amd64) On An Ubuntu Server Intellicus Cluster and Load Balancing (Windows) Intellicus Enterprise Reporting and BI Platform Intellicus Technologies info@intellicus.com www.intellicus.com Copyright 2014 Intellicus Technologies This

More information

Python for Series 60 Platform

Python for Series 60 Platform F O R U M N O K I A Getting Started with Python for Series 60 Platform Version 1.2; September 28, 2005 Python for Series 60 Platform Copyright 2005 Nokia Corporation. All rights reserved. Nokia and Nokia

More information

Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1

Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1 1 of 11 16.10.2002 11:41 Hello World Portlet Rendered with JSP for WebSphere Portal Version 4.1 Table of Contents Creating the directory structure Creating the Java code Compiling the code Creating the

More information

Security Development Tool for Microsoft Dynamics AX 2012 WHITEPAPER

Security Development Tool for Microsoft Dynamics AX 2012 WHITEPAPER Security Development Tool for Microsoft Dynamics AX 2012 WHITEPAPER Junction Solutions documentation 2012 All material contained in this documentation is proprietary and confidential to Junction Solutions,

More information

Crystal Reports Installation Guide

Crystal Reports Installation Guide Crystal Reports Installation Guide Version XI Infor Global Solutions, Inc. Copyright 2006 Infor IP Holdings C.V. and/or its affiliates or licensors. All rights reserved. The Infor word and design marks

More information

DiskPulse DISK CHANGE MONITOR

DiskPulse DISK CHANGE MONITOR DiskPulse DISK CHANGE MONITOR User Manual Version 7.9 Oct 2015 www.diskpulse.com info@flexense.com 1 1 DiskPulse Overview...3 2 DiskPulse Product Versions...5 3 Using Desktop Product Version...6 3.1 Product

More information

UF Health SharePoint 2010 Document Libraries

UF Health SharePoint 2010 Document Libraries UF Health SharePoint 2010 Document Libraries Email: training@health.ufl.edu Web Page: http://training.health.ufl.edu Last Updated 2/7/2014 SharePoint 2010 Document Libraries 1.5 Hours 1.0 Shared Network

More information

Desktop, Web and Mobile Testing Tutorials

Desktop, Web and Mobile Testing Tutorials Desktop, Web and Mobile Testing Tutorials * Windows and the Windows logo are trademarks of the Microsoft group of companies. 2 About the Tutorial With TestComplete, you can test applications of three major

More information

ServletExec TM 5.0 User Guide

ServletExec TM 5.0 User Guide ServletExec TM 5.0 User Guide for Microsoft Internet Information Server Netscape Enterprise Server iplanet Web Server Sun ONE Web Server and Apache HTTP Server ServletExec 5.0 User Guide 1 NEW ATLANTA

More information

Course Name: Course in JSP Course Code: P5

Course Name: Course in JSP Course Code: P5 Course Name: Course in JSP Course Code: P5 Address: Sh No BSH 1,2,3 Almedia residency, Xetia Waddo Duler Mapusa Goa E-mail Id: ITKP@3i-infotech.com Tel: (0832) 2465556 (0832) 6454066 Course Code: P5 3i

More information

Accessing Data with ADOBE FLEX 4.6

Accessing Data with ADOBE FLEX 4.6 Accessing Data with ADOBE FLEX 4.6 Legal notices Legal notices For legal notices, see http://help.adobe.com/en_us/legalnotices/index.html. iii Contents Chapter 1: Accessing data services overview Data

More information

Building Web Applications, Servlets, JSP and JDBC

Building Web Applications, Servlets, JSP and JDBC Building Web Applications, Servlets, JSP and JDBC Overview Java 2 Enterprise Edition (JEE) is a powerful platform for building web applications. The JEE platform offers all the advantages of developing

More information

EMC Documentum Composer

EMC Documentum Composer EMC Documentum Composer Version 6.5 User Guide P/N 300 007 217 A02 EMC Corporation Corporate Headquarters: Hopkinton, MA 01748 9103 1 508 435 1000 www.emc.com Copyright 2008 EMC Corporation. All rights

More information

Java Web Programming with Eclipse

Java Web Programming with Eclipse Java Web Programming with Eclipse David Turner, Ph.D. Department of Computer Science and Engineering California State University San Bernardino Jinsok Chae, Ph.D. Department of Computer Science and Engineering

More information

Richmond SupportDesk Web Reports Module For Richmond SupportDesk v6.72. User Guide

Richmond SupportDesk Web Reports Module For Richmond SupportDesk v6.72. User Guide Richmond SupportDesk Web Reports Module For Richmond SupportDesk v6.72 User Guide Contents 1 Introduction... 4 2 Requirements... 5 3 Important Note for Customers Upgrading... 5 4 Installing the Web Reports

More information

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint 2013. InfoPath 2013 Web Enabled (Browser) forms

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint 2013. InfoPath 2013 Web Enabled (Browser) forms Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint 2013. InfoPath 2013 Web Enabled (Browser) forms InfoPath 2013 Web Enabled (Browser) forms Creating Web Enabled

More information

Creating XML Report Web Services

Creating XML Report Web Services 5 Creating XML Report Web Services In the previous chapters, we had a look at how to integrate reports into Windows and Web-based applications, but now we need to learn how to leverage those skills and

More information

Microsoft Access 2010 handout

Microsoft Access 2010 handout Microsoft Access 2010 handout Access 2010 is a relational database program you can use to create and manage large quantities of data. You can use Access to manage anything from a home inventory to a giant

More information

FileMaker Server 12. FileMaker Server Help

FileMaker Server 12. FileMaker Server Help FileMaker Server 12 FileMaker Server Help 2010-2012 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker is a trademark of FileMaker, Inc.

More information

DEPLOYING EMC DOCUMENTUM BUSINESS ACTIVITY MONITOR SERVER ON IBM WEBSPHERE APPLICATION SERVER CLUSTER

DEPLOYING EMC DOCUMENTUM BUSINESS ACTIVITY MONITOR SERVER ON IBM WEBSPHERE APPLICATION SERVER CLUSTER White Paper DEPLOYING EMC DOCUMENTUM BUSINESS ACTIVITY MONITOR SERVER ON IBM WEBSPHERE APPLICATION SERVER CLUSTER Abstract This white paper describes the process of deploying EMC Documentum Business Activity

More information

EMC Documentum Content Services for SAP Repository Manager

EMC Documentum Content Services for SAP Repository Manager EMC Documentum Content Services for SAP Repository Manager Version 6.0 Installation Guide P/N 300 005 500 Rev A01 EMC Corporation Corporate Headquarters: Hopkinton, MA 01748 9103 1 508 435 1000 www.emc.com

More information

Hypercosm. Studio. www.hypercosm.com

Hypercosm. Studio. www.hypercosm.com Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks

More information

Colligo Email Manager 5.1. User Guide

Colligo Email Manager 5.1. User Guide 5.1 User Guide Contents Enterprise Email Management for SharePoint 2010 1 Benefits 1 Key Features 1 Platforms Supported 1 Installing and Activating Colligo Email Manager 2 Managing SharePoint Sites 5 Adding

More information

Oracle Service Bus Examples and Tutorials

Oracle Service Bus Examples and Tutorials March 2011 Contents 1 Oracle Service Bus Examples... 2 2 Introduction to the Oracle Service Bus Tutorials... 5 3 Getting Started with the Oracle Service Bus Tutorials... 12 4 Tutorial 1. Routing a Loan

More information

http://netbeans.org/kb/docs/java/gui-functionality.html?print=yes

http://netbeans.org/kb/docs/java/gui-functionality.html?print=yes Page 1 of 6 Introduction to GUI Building Contributed by Saleem Gul and Tomas Pavek, maintained by Ruth Kusterer and Irina Filippova This beginner tutorial teaches you how to create a simple graphical user

More information

During the process of creating ColorSwitch, you will learn how to do these tasks:

During the process of creating ColorSwitch, you will learn how to do these tasks: GUI Building in NetBeans IDE 3.6 This short tutorial guides you through the process of creating an application called ColorSwitch. You will build a simple program that enables you to switch the color of

More information

Tutorial: Time Of Day Part 2 GUI Design in NetBeans

Tutorial: Time Of Day Part 2 GUI Design in NetBeans Tutorial: Time Of Day Part 2 GUI Design in NetBeans October 7, 2010 Author Goals Kees Hemerik / Gerard Zwaan Getting acquainted with NetBeans GUI Builder Illustrate the separation between GUI and computation

More information

Upgrading from Call Center Reporting to Reporting for Contact Center. BCM Contact Center

Upgrading from Call Center Reporting to Reporting for Contact Center. BCM Contact Center Upgrading from Call Center Reporting to Reporting for Contact Center BCM Contact Center Document Number: NN40010-400 Document Status: Standard Document Version: 02.00 Date: June 2006 Copyright Nortel Networks

More information

Forte TM for Java TM (Community Edition) User s Guide

Forte TM for Java TM (Community Edition) User s Guide Forte TM for Java TM (Community Edition) User s Guide Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650 960-1300 Fax 650 969-9131 Part no.: 806-4570-10 Revision 1, February 2000

More information

HttpUnit Laboratorio di Sistemi Software - A.A. 2003/2004

HttpUnit Laboratorio di Sistemi Software - A.A. 2003/2004 HttpUnit Laboratorio di Sistemi Software - A.A. 2003/2004 Introduction HttpUnit, available from http://www.httpunit.org, is an open source Java library for programmatically interacting with HTTP servers.

More information

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë 14.1 bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë bî~äì~íáåö=oéñäéåíáçå=ñçê=emi=rkfui=~åç=lééåsjp=eçëíë This guide walks you quickly through key Reflection features. It covers: Getting Connected

More information

Colligo Email Manager 6.0. Connected Mode - User Guide

Colligo Email Manager 6.0. Connected Mode - User Guide 6.0 Connected Mode - User Guide Contents Colligo Email Manager 1 Benefits 1 Key Features 1 Platforms Supported 1 Installing and Activating Colligo Email Manager 2 Checking for Updates 3 Updating Your License

More information

Eucalyptus 3.4.2 User Console Guide

Eucalyptus 3.4.2 User Console Guide Eucalyptus 3.4.2 User Console Guide 2014-02-23 Eucalyptus Systems Eucalyptus Contents 2 Contents User Console Overview...4 Install the Eucalyptus User Console...5 Install on Centos / RHEL 6.3...5 Configure

More information

Microsoft Office Access 2007 Basics

Microsoft Office Access 2007 Basics Access(ing) A Database Project PRESENTED BY THE TECHNOLOGY TRAINERS OF THE MONROE COUNTY LIBRARY SYSTEM EMAIL: TRAININGLAB@MONROE.LIB.MI.US MONROE COUNTY LIBRARY SYSTEM 734-241-5770 1 840 SOUTH ROESSLER

More information

Publishing Geoprocessing Services Tutorial

Publishing Geoprocessing Services Tutorial Publishing Geoprocessing Services Tutorial Copyright 1995-2010 Esri All rights reserved. Table of Contents Tutorial: Publishing a geoprocessing service........................ 3 Copyright 1995-2010 ESRI,

More information

FileMaker Server 11. FileMaker Server Help

FileMaker Server 11. FileMaker Server Help FileMaker Server 11 FileMaker Server Help 2010 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker is a trademark of FileMaker, Inc. registered

More information

tools that make every developer a quality expert

tools that make every developer a quality expert tools that make every developer a quality expert Google: www.google.com Copyright 2006-2010, Google,Inc.. All rights are reserved. Google is a registered trademark of Google, Inc. and CodePro AnalytiX

More information

Horizon Debt Collect. User s and Administrator s Guide

Horizon Debt Collect. User s and Administrator s Guide Horizon Debt Collect User s and Administrator s Guide Microsoft, Windows, Windows NT, Windows 2000, Windows XP, and SQL Server are registered trademarks of Microsoft Corporation. Sybase is a registered

More information

Catalog Web service and catalog commerce management center customization

Catalog Web service and catalog commerce management center customization Copyright IBM Corporation 2008 All rights reserved IBM WebSphere Commerce Feature Pack 3.01 Lab exercise Catalog Web service and catalog commerce management center customization What this exercise is about...

More information

KINETIC SR (Survey and Request)

KINETIC SR (Survey and Request) KINETIC SR (Survey and Request) Installation and Configuration Guide Version 5.0 Revised October 14, 2010 Kinetic SR Installation and Configuration Guide 2007-2010, Kinetic Data, Inc. Kinetic Data, Inc,

More information

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.2 Web Applications Deployed on BEA WebLogic Server 9.2

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.2 Web Applications Deployed on BEA WebLogic Server 9.2 Configuration Guide Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.2 Web Applications Deployed on BEA WebLogic Server 9.2 This document describes how to configure Apache HTTP Server

More information

Colligo Email Manager 6.0. Offline Mode - User Guide

Colligo Email Manager 6.0. Offline Mode - User Guide 6.0 Offline Mode - User Guide Contents Colligo Email Manager 1 Key Features 1 Benefits 1 Installing and Activating Colligo Email Manager 2 Checking for Updates 3 Updating Your License Key 3 Managing SharePoint

More information

Oracle SOA Suite 11g Oracle SOA Suite 11g HL7 Inbound Example

Oracle SOA Suite 11g Oracle SOA Suite 11g HL7 Inbound Example Oracle SOA Suite 11g Oracle SOA Suite 11g HL7 Inbound Example michael.czapski@oracle.com June 2010 Table of Contents Introduction... 1 Pre-requisites... 1 Prepare HL7 Data... 1 Obtain and Explore the HL7

More information

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04 Tutorial: BlackBerry Object API Application Development Sybase Unwired Platform 2.2 SP04 DOCUMENT ID: DC01214-01-0224-01 LAST REVISED: May 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This

More information

TM Online Storage: StorageSync

TM Online Storage: StorageSync TM Online Storage: StorageSync 1 Part A: Backup Your Profile 1: How to download and install StorageSync? Where to download StorageSync? You may download StorageSync from your e-storage account. Please

More information