Install and configure the BEA WorkShop JSP Editor

Source: Internet
Author: User
Tags interface version versions window domain access tomcat tomcat server
Js Workshop Introduction

Bea recently acquired the M7 company, adding its Nitrox series development tools to the BEA Workshop product family, and the new BEA Workshop product family consists of five parts, Bea Workshop for Struts, and Bea Workshop for JSF, Bea Bea WorkShop JSP Editor, Bea WorkShop Studio, and the original Bea WebLogic WorkShop.

In addition to the BEA WebLogic Workshop, four other development tools are based on the Eclipse platform (it is understood that the next version of Bea WebLogic workshop™8.1 will also be merged using the common Eclipse platform). These four development tools provide visual support for the development of Web applications based on JSF and struts frameworks, while providing a visual interface for developers to access databases using Hibernate.

The most compelling feature of the newly introduced toolset is the use of the unique technology called "Appxray". People who use struts and JSF to develop Web applications know that we need to manage the interrelationships between Actionform, Action, JSP pages, etc. For example, under the struts architecture we need to write and modify Struts-config.xml files, but errors are unavoidable. The "Appxray" technology can automatically detect hidden relationships between actionform, Action, and JSP pages during Web application compilation, giving prompt hints when errors occur, rather than waiting until the runtime to give an error message by the servlet container.

BEA WorkShop JSP Editor

The BEA WorkShop JSP editor is the most basic part of Bea WorkShop, and Bea WorkShop for Struts, Bea WorkShop for JSF, BEA WorkShop studio includes Bea Wo Rkshop JSP Editor. The BEA WorkShop JSP Editor is designed to provide a visual development environment for developers who use JSP+JSTL to develop Web applications. The main features of the BEA WorkShop JSP editor are as follows:

    • Professional JSP source Code Editor
    • also provides JSP visual editing and source code editing capabilities
    • Support for JSP2.0 standards (including expression language EL)
    • Support for JSTL tags
    • Visual editing interface for TLD files
    • Visual editing interface for Web.xml files
    • Automatic code completion
    • Support for custom tag libraries

The BEA WorkShop JSP editor provides free license, but unfortunately this version does not provide "appxray" technical support, nor does IT support JSP debugging capabilities.

Environmental Preparedness

The author's operating system is Windows Server, and the instructions for all the steps in this article are also for Windows Server, and if you use other operating systems such as Linux, you need to make some adjustments based on the steps below, and if you need help, Please get in touch with the author through email:king@vivianj.org.

Tools Download
    • tomcat5.x

The BEA WorkShop JSP Editor Development tool supports a variety of servlet containers such as Tomcat, Jetty, JBoss, WebLogic, and so on, in order to demonstrate universality, The following example will select Tomcat5.5.8 as a servlet container, and if you are using another servlet container or another version of Tomcat, adjust accordingly 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 additional changes are required to use other versions of the JDK, and with the simplicity of the development, it is recommended that 1.5 or more versions of JDK be used, and the following instructions are based on the JDK 1.5.0_01 version.

    • Eclipse3.1.1

The BEA WorkShop JSP Editor is a plug-in for Eclipse, and when this article is published, The latest version of Eclipse is 3.1.1, and all of the following configuration and development processes are based on eclipse3.1.1,eclipse that can be downloaded to the www.eclipse.org Web site.

    • BEA WorkShop JSP Editor

BEA WorkShop JSP Editor tool can go to the http://www.m7.com website to download, when downloading, please pay attention to select the appropriate version.

While the BEA WorkShop JSP Editor provides free license, it is necessary to obtain license information before using the M7 website, so we recommend that you register and download it, and in my experience, the version that is downloaded after registering for login is usually relatively new.

Software Installation
    • Installing JDK

The JDK can be installed by clicking on the downloaded. exe file, followed by%java_home% to refer to the JDK installation directory.

    • Install Tomcat

Unzip the downloaded Tomcat compression package to a directory such as the C:\TOMCAT5 directory, and the following article will use%tomcat_home% to represent the directory.

    • Install Eclipse

Unzip the downloaded Eclipse compression pack into a directory such as the C:\Eclipse directory, and the following article will use%eclipse_home% to represent the directory.

The author installs Eclipse in English, and all of the instructions and screenshots in the following instructions are based on the English version, and if you use the Chinese version of Eclipse, you need the reader to complete the control, please forgive me.

    • install the BEA WorkShop JSP Editor

Click on the downloaded. exe file to complete the installation of the BEA WorkShop JSP editor, you will need to select the installation directory for Eclipse during the installation process, select the correct directory, or the BEA WorkShop JSP editor won't run.

The installation of the BEA WorkShop JSP editor uses the link plug-in installation technology provided by eclipse, so you can choose to install the BEA WorkShop JSP editor anywhere. After installation, the BEA WorkShop JSP Editor creates a new links directory under the%eclipse_home% directory, where the file named Com.m7.nitrox.link is created, and the contents of the file are as follows:

Path=c\:/nitrox_jsp_editor_3.0_465/nitrox

If you did not select the correct installation directory in the previous installation steps, you can complete the new work for the links directory and the Com.m7.nitrox.link file, and the contents of the Com.m7.nitrox.link file after path are the installation directory you chose when you installed Nitrox.

The BEA WorkShop JSP Editor is free, but it needs to be registered on http://www.m7.com before it gets license.

First example

With the above steps, we have completed all the development tools and environments ready to start using the BEA WorkShop JSP editor. The following sections explain how to complete the necessary steps to develop Web applications using the BEA WorkShop JSP editor, and for the sake of simplicity, we do not intend to do much of the development work directly using the BEA WorkShop JSP Editor Wizard to generate examples of Web applications. More features will be introduced in the following articles for everyone.

The following sections demonstrate how to develop Web applications using the BEA WorkShop JSP editor, the BEA WorkShop for Struts, the BEA WorkShop for JSF, the BEA WorkShop Studio initial setup work, and the following steps generally Consistent, please refer to these steps yourself to complete.

    • Create a Web project by using a wizard

Open the Eclipse development tool, click the menu Fileànewàother ..., and select the Web application Wizard below Nitrox in the pop-up Winzard selection box.

You can use the shortcut key CTRL + N to open the Winzard selection box.

The first time you run the BEA WorkShop JSP editor, you need to provide License information, you need to http://www.m7.com register to get the BEA WorkShop JSP editor product free License.

Click the Next button to enter the Web application configuration interface, where you can choose to create a new Web application or start from an existing Web application, and for the sake of simplicity, choose a new Web application.

Click on the Next button to enter the Web project name and directory configuration, we enter Nitroxexamples in the project name, the engineering directory using the system provided by default directory.

Click on the Next button to enter the Web application's technical configuration interface, we can choose the Web application to support the JSP2.0 Standard or JSP1.2 standard, and we can choose whether the application uses the JSTL standard tag library, we do not make any changes in the demo, use the system default configuration.

Click on the Next button to enter the Java environment variable settings, we use the system default settings, click the Finish button to complete the creation of the Web project. This is a pop-up window that prompts you to use the Web perspective provided by the BEA WorkShop JSP editor to open the new Web project and click the Yes button to complete the final work.

Before starting the following development, configuration work, let's familiarize ourselves with the directory structure of the BEA WorkShop JSP Editor Wizard that generates Web applications. The following diagram is a screenshot of the AppXplore view in the Eclipse interface after the wizard completes the Web project.

    • Web (web App Root) node

The Web (web App Root) node represents a file directory in which content becomes available for publishing Web applications, including JSP files, compiled Java classes, all taglib profiles, and so on.

    • Web/web-inf/src/java Node

The Web/web-inf/src/java node is only a mapping of the Web-inf/src/java directory under the Web (Web App Root) node to facilitate user manipulation of Java source files.

    • referenced Types
    • Configure the context path for a Web application

Typically, there will be multiple Web applications in one project, and the default context path for Web applications generated by using the wizards provided by the BEA WorkShop JSP editor is "/", so we usually configure his context path, The following describes how to set the context path for the newly created Web application to Nitrox.

Right-click the Nitroxexamples node in the AppXplore view, select Properties in the pop-up context menu, and select Nitrox Web application in the list column on the left of the pop-up project properties page. Click the Folders tab in the Right tab, enter Nitrox in the text field below the context root of the label, and click the OK button to complete the setup work.

    • Configuring the servlet container

The BEA WorkShop JSP editor supports the integration servlet container to complete Web application development, debugging, and so on, but the BEA WorkShop JSP editor does not provide a separate server view to manage these servlet containers. This is where the nitrox also needs to be improved, and the following will show how to configure the Servlet container for the Web application created above.

Right-click the Nitroxexamples node in the AppXplore view and select Run Asàrun in the pop-up context menu ....

In the pop-up window, click the left Web application node and click the New button in the lower left corner, we will see the configuration interface of the Web application running environment, enter TOMCAT5 in the Name field, click Browe after the Project field ... button, select the Nitroxexamples project you created earlier. The configuration interface now looks like the following image.

Click New next to the run with server domain ... button to enter the configuration interface of the servlet container. In the server Configuration Name text field, enter Tomcat5server, select Jakarta Tomcat5 in the run with Application Server domain, click Tomcat installation Browse at the back of directory domain ... button to select the Tomcat installation directory, click Browse after the JDK installation directory domain ... button, select the installation directory for the JDK.

Click the OK button to complete the configuration of the servlet container and return to the configuration interface of the Web application running environment, where the screenshot of the configuration interface is shown below.

Click the Apply button in the lower right corner to complete all settings and click the Close button in the lower right corner to exit the Setup interface.

    • Run Example

In the steps above, we have finished setting up the servlet container, and now we can start running the example. Expand the Nitroxexamples node of the AppXplore view, right-click on the Index.jsp node, and select Run Asàrun in the pop-up context menu ....

In the pop-up interface, click the Tomcat node in the list on the left, and then click the Run button in the lower-right corner.

At this point the BEA WorkShop JSP editor starts the Tomcat server based on the previous settings, publishes the Nitroxexample application to the server, and opens the system default browser, which is displayed in the browser http://localhost:8080/ nitrox/the corresponding content.

BEA WorkShop JSP Editor will generate a M7.auto.server.xml file as the Tomcat server's configuration file before starting Tomcat, instead of using the Server.xml file provided at Tomcat installation as the Tomcat startup profile, so you configure it in Tomcat His web application will not be accessible at this time.

After the Tomcat server is started, you need to run index.jsp again, you can only open the browser directly, enter the http://localhost:8080/nitrox/index.jsp file in the address bar, and if you access it in the above way, you will get the hint information as shown in the following figure.

Summary

The BEA WorkShop JSP Editor is the newest member of the BEA WorkShop product family, providing a visual interface and rich features to support JSP+JSTL development, and the author describes in detail how to install and configure the BEA WorkShop JSP Editor and run the entire process of the example, the installation and configuration process of the three development tools for the BEA Workshop for Struts, the BEA Workshop for JSF, the BEA Workshop studio, and the BEA Workshop JSP editor worker Installation, configuration of the project is generally consistent, you can refer to the process of their own completion.



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.