Extending the Administration Console
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
BEA provides all of the JSP tag libraries, schemas, and base Java classes that you need to develop a console extension. Because an Administration Console extension is a collection of XML files, Java classes, JSPs, and other standard Web-related resources, you can use any text editor or Integrated Development Environment to develop your extension.
The following sections describe setting up an environment for developing Administration Console extensions:
If you are creating Apache Struts classes or Beehive Page Flow classes for your extension, you need a set of Apache classes in your classpath. If you are adding nodes to the NavTreePortlet, you need a set of BEA classes.
To add these classes to your classpath, run the following script:WL_HOME\server\bin\setWLSEnv.cmd
(or setWLSEnv.sh
)
where WL_HOME
is the directory in which you installed WebLogic Server.
Instead of using BEA's script, you can add the following JAR files to your environment's classpath, all of which are in the WL_HOME
/server/lib/consoleapp/webapp/WEB-INF/lib
directory:
beehive-netui-tags-template.jar
beehive-netui-tags-html.jar
beehive-netui-scoping.jar
console.jar
controls.jar
netuix_taglib.jar
netuix_servlet.jar
struts.jar
If you are using BEA's JSP templates to create JSPs in your extension, you must use JSP tags from the JSP Standard Tag Library (JSTL), the BEA Administration Console Extension Tag Library, and the Apache Beehive Page Flows Tag Library.
The WebLogic Server runtime environment already provides these tag libraries. For development support, add the following tag libraries to your development environment:WL_HOME
/server/lib/consoleapp/webapp/WEB-INF/beehive-netui-tags-html.tld
WL_HOME
/server/lib/consoleapp/webapp/WEB-INF/fmt.tld
WL_HOME
/server/lib/consoleapp/webapp/WEB-INF/console-html.tld
An Administration Console extension is a portion of a Web application and its resources must be organized into a directory structure that satisfies the requirements for standard J2EE Web applications. In addition, the WebLogic Portal framework, Apache Struts, and Apache Beehive require configuration files to be in specific locations.
To start working on your Administration Console extension, create a directory tree that matches the skeletal structure in Table 3-1.
If you are extending the Administration Console's Look and Feel, your root directory will contain additional subdirectories. See Copy and Modify the Sample Look and Feel: Main Steps.
WebLogic Server provides a Look and Feel that reveals the labels of the Administration Console's extension points. You use these labels to specify where you want your extension to display.
Note: If you plan only to create a Look and Feel extension or add a portlet to the desktop, you do not need to deploy the development Look and Feel.
The archive is distributed in a Code Samples project named Console Extension Developer Look and Feel (code-sample ID S118) and is available at the following URL:
https://codesamples.projects.dev2dev.bea.com/servlets/Scarab?id=S118
Each labeled control displays the value of its definitionLabel
in brackets ([]) next to its user-visible title. In a separate pair of brackets, the control displays whether it is a book or a page. See Figure 3-1.
Figure 3-1 A Control Label in the Administration Console User Interface
![]() ![]() |
![]() |
![]() |