Install and configure Bea workshop JSP Editor

Source: Internet
Author: User
About Workshop

Bea recently acquired M7 and added its nitrox series development tools to the BEA workshop product family. The new BEA workshop product family consists of five parts, bea workshop for struts, Bea workshop for JSF, Bea workshop JSP Editor, Bea workshop studio, and the original BEA WebLogic Workshop.

In addition to BEA WebLogic Workshop, four other development tools are based on the eclipse platform (it is reported that the next version of BEA WebLogic Workshop 8.1 will also be merged using the general eclipse platform ). These four development tools provide visual support for developing Web applications based on the JSF and Struts frameworks, and provide developers with a visual interface for accessing databases using hibernate.

The most attractive feature of the newly introduced toolset is the use of the unique technology named "appxray. People who use struts and JSF to develop Web applications know that we need to manage the relationships between actionform, action, JSP pages, etc. For example, in struts architecture, we need to write and modify struts-config.xml files, but errors are inevitable." Appxray technology can automatically detect hidden relationships among actionform, action, and JSP pages during web application compilation, and prompt when an error occurs, instead of waiting until the servlet container gives an error message.

Bea workshop JSP Editor

Bea workshop JSP editor is the most basic part of BEA workshop. Bea workshop for struts, Bea workshop for JSF, and Bea workshop studio contain Bea workshop JSP editor. Bea workshop JSP editor is designed to provide a visual development environment for developers who use JSP + jstl to develop Web applications. Bea workshop JSP editor has the following main features:

  • Professional JSP Source Code Editor
  • JSP visual editing and source code editing
  • Supports the jsp2.0 standard (including Expression Language El)
  • Support for jstl labels
  • TLD file visual editing interface
  • Visual editing interface for Web. xml files
  • Code automatically completed
  • Support for custom tag Libraries

Bea workshop JSP Editor provides free license, but unfortunately this version does not provide "appxray" technical support or support JSP debugging.

Environment preparation

The operating system of the author is Windows 2000 Server. All the operation steps described in this article are also for Windows 2000 server. If you use other operating systems such as Linux, you need to make some corresponding adjustments according to the following steps, if you need help, please contact the author via email: king@vivianj.org.

Download Tool

  • Tomcat5.x

Bea workshop JSP editor development tool supports multiple servlet containers, such as Tomcat, Jetty, JBoss, and weblogic. To demonstrate the universality, Tomcat 5.5.8 is selected as the servlet container in the following example, if you are using other servlet containers or other versions of Tomcat, make corresponding adjustments according to your environment.

Tomcat5.x download site: http://jakarta.apache.org/site/binindex.cgi

  • Jdk1.5.x

Because tomcat5.x is developed based on jdk1.5.x, if you need to make other changes to use other JDK versions, we recommend that you use JDK 1.5 or later for ease of development, the following describes JDK 1.5.0 _ 01.

  • Eclipse3.1.1

Bea workshop JSP editor is a plug-in of eclipse. When published in this article, the latest version of eclipse is 3.1.1. All the following configuration and development processes are based on eclipse3.1.1. eclipse can be downloaded from www.eclipse.org.

  • Bea workshop JSP Editor

Bea workshop JSP Editor tool can go to the http://www.m7.com site to download, download please pay attention to select the appropriate version.

Although Bea workshop JSP Editor provides a free license, you need to obtain the license information after registering on the M7 website before using it. Therefore, we recommend that you register and download the license first, and in my experience, the versions downloaded after registration and logon are usually newer.

Software Installation

  • Install JDK

You can directly click the .exe file to install JDK, and use % java_home % to reference the JDK installation directory.

  • Install Tomcat

Decompress the downloaded Tomcat compressed package to a directory such as C:/tomcat5. In the subsequent articles, % tomcat_home % will be used to represent this directory.

  • Install eclipse

Decompress the downloaded eclipse compressed package to a directory such as C:/eclipse. In the subsequent articles, % eclipse_home % will be used to represent this directory.

The eclipse installed by the author is in the English version. All the instructions below and the screen are based on the English version. If you are using eclipse in the Chinese version, you need to complete the comparison yourself. Please forgive me.

  • Install Bea workshop JSP Editor

Click the downloaded. EXE file to install the BEA workshop JSP editor. You must select the eclipse installation directory during the installation process. Select the correct directory. Otherwise, the BEA workshop JSP editor cannot run.

Bea workshop JSP editor is installed using the link plug-in installation technology provided by ECLIPSE, so you can choose to install Bea workshop JSP editor anywhere. After Bea workshop JSP editor is installed, the links directory will be created under the % eclipse_home % directory, and the file named com. m7.nitrox. link will be created under this directory. The content of the file is as follows:

  path=c/:/NitroX_JSP_Editor_3.0_465/NitroX

If the correct installation directory is not selected in the preceding installation steps, you can complete the links directory and COM. m7.nitrox. link file creation, Com. m7.nitrox. the content after path in the Link file is the installation directory selected when nitrox is installed.

Bea workshop JSP editor is free, but before using it, you need to register on the http://www.m7.com to obtain the license.

Example 1

After the above steps, we have completed the preparation of all development tools and environments. You can start using Bea workshop JSP editor. The following sections describe how to use Bea workshop JSP editor to develop Web applications. to simplify the description, we do not plan to do too much development work, directly use the BEA workshop JSP editor Wizard to generate Web application examples. More features will be introduced one by one in subsequent articles.

The following sections describe how to use Bea workshop JSP editor to develop Web applications. The initial settings of BEA workshop for struts, Bea workshop for JSF, and Bea workshop studio are roughly the same as those of the following steps, follow these steps.

  • Use the Wizard to create a web project

Open the eclipse development tool and click File à New à other… in the menu ..., In the winzard selection box that appears, select Web Application Wizard under nitrox..

  

You can press Ctrl + n to open the winzard selection box.

The first time you run Bea workshop JSP editor, you need to provide the license information, you need to go to the http://www.m7.com after registration to get the free license of BEA workshop JSP editor.

Click the next button to go to the Web application configuration page. Here you can choose to create a new Web application or an existing web application. To make the demonstration simple, click here to create a new Web application.

  

Click Next to enter the WEB Project name and directory configuration. In the project name, enter nitroxexamples. The project directory uses the default directory provided by the system.

  

Click the next button to go to the Web application technical configuration interface. We can select whether the web application supports the jsp2.0 standard or jsp1.2 standard, and whether the application uses the jstl standard tag library, in the demo, we do not make any changes and use the default system configuration.

Click Next To Go To The Java environment variable settings. We use the system default settings and click Finish to create a web project. This is a pop-up window indicating whether to use the Web perspective provided by BEA workshop JSP editor to open the new web project. Click Yes to complete the final work.

  

Before starting the following development and configuration work, we should familiarize ourselves with the directory structure of the web application generated by the BEA workshop JSP editor wizard. The following figure shows the screen of the appxplore view on the eclipse interface after the web project is completed through the wizard.

    • Web (web app root) node

The Web (web app root) node represents a file directory where the content will become web application content that can be published, including JSP files, compiled Java classes, all taglib description files, and so on.

    • Web/WEB-INF/src/Java Node

The Web/WEB-INF/src/Java node is only a ing of the WEB-INF/src/Java directory under the web (web app root) node, in order to facilitate the user to operate Java source files.

    • Referenced types

  

  • Configure the context path of the Web Application

Generally, a project has multiple web applications. The default context path of the Web application generated using the Wizard provided by BEA workshop JSP editor is "/". Therefore, we usually configure its context path, the following describes how to set the context path of the newly created web application to nitrox.

Right-click the nitroxexamples node in the appxplore view, select Properties from the context menu, and select nitrox web application from the list bar on the left of the project properties page, click the folders tab on the right, enter nitrox in the text field under the context root of the tag, and click OK to complete the setting.

  

  • Configure Servlet Container

Bea workshop JSP Editor supports integrating servlet containers to develop and debug web applications. However, Bea workshop JSP editor does not provide a separate server view to manage these servlet containers, this is where nitrox still needs to be improved. The following content demonstrates how to configure servlet containers for the Web application created above.

Right-click the nitroxexamples node in the appxplore view and choose run as à run… from the context menu ....

  

In the pop-up window, click the web application node on the left and click the new button in the lower left corner. The configuration page of the Web application runtime environment is displayed. In the Name field, enter tomcat5, click browe... Click to select the nitroxexamples project created earlier. The current configuration page looks as shown in.

  

Click new… next to the run with server domain... Click to enter the servlet container configuration interface. Enter tomcat5server in the server configuration Name text domain, select Jakarta tomcat5 in the run with Application Server domain, and Click Browse... Select the tomcat installation directory and click the Browse... Select the JDK installation directory.

  

Click OK to complete the servlet container configuration and return to the Web application running environment configuration page. The configuration page is displayed, as shown in.

  

Click Apply in the lower-right corner to complete all settings. Click Close in the lower-right corner to exit the settings page.

  • Running example

In the above step, we have completed the servlet container settings. Now we can start running the example. Expand the nitroxexamples node in the appxplore view, right-click the index. jsp node, and select Run as à run from the context menu ....

  

On the displayed page, click the Tomcat node in the list on the left, and then click the run button in the lower right corner.

  

In this case, Bea workshop JSP editor starts the Tomcat server based on the preceding settings, releases the nitroxexample application to the server, opens the default browser of the system, and displays http: // localhost: in the browser: 8080/nitrox.

Bea workshop JSP editor will generate a m7.auto by itself before starting tomcat. server. the XML file is used as the configuration file of the Tomcat server, instead of the server provided during tomcat installation. the XML file is the configuration file when Tomcat is started. Therefore, other Web applications configured in Tomcat cannot be accessed normally at this time.

After the Tomcat server is started, you need to run index again. JSP, you can only open the browser, enter http: // localhost: 8080/nitrox/index in the address bar. JSP file. If you use the preceding method to access the file, you will receive a prompt as shown in.

Summary

Bea workshop JSP editor is the latest member of the BEA workshop product family. It provides visual interfaces and rich features to support JSP + jstl development, the author describes in detail how to install and configure Bea workshop JSP editor and how to run the example, the installation and configuration processes of BEA workshop for struts, Bea workshop for JSF, and Bea workshop studio are roughly the same as those of the BEA workshop JSP editor installation and configuration project, you can complete this process by yourself.

Author Profile

Xiao Jing
Xiao Jing is the founder of weij family (www.vivianj.org), Bea Hangzhou user group owner, freelance writer, founder of open source project buildfiledesigner (buildfiledesign.sourceforge.net) and V-Security (v-security.sourceforge.net.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.