Creating a Nexaweb Application requires that the developer create:
...
Nexaweb アプリケーションを作成する場合は、次のファイルを作成する必要があります。
- ユーザー インターフェイス (UI)
...
- のレイアウトを定義する XML ファイル
- MCO (Managed Client Objects)、JSP (
...
- JavaServer Pages
...
To do this, you need, at a minimum, an editor and Java compiler. Most developers these days use some form of Integrated Development Environment (IDE), which provides additional tools to make the developer more productive. For example, Nexaweb also provides an IDE called Nexaweb Studio that provides tools to graphically create Nexaweb UI XML files. Many software projects use an automated command-line build tool to facilitate routine builds, and Apache Ant has become a de facto standard for these types of systems. Ant is also used by developers who prefer to use "plain" text editors such as Emacs, VI, or Notepad. This document will discuss the steps required to build a typical Nexaweb application with both Ant and Nexaweb Studio.
...
- )、およびサーブレット用の Java ファイル
Note: Nexaweb-enabled applications may be deployed on any Servlet container that conforms to the Servlet 2.3 (or later) specification, including Apache Tomcat and J2EE application servers.
...
このドキュメントは、読者が Ant の使用方法を既に理解していることを前提として書かれています。Ant の使用方法がわからない場合は、Ant の Web サイト、
Apache Ant - http://ant.apache.org/...
注: Nexaweb に対応したアプリケーションは、Apache Tomcat や J2EE アプリケーションサーバーなど、Servlet 2.3 以降の仕様に準拠するサーブレットコンテナにデプロイすることができます。
Nexaweb に対応したアプリケーションは、追加の Nexaweb リソースを使用して、標準の J2EE Web アプリケーションとしてデプロイできます。典型的な Web アプリケーションは次に示すような構成になっています。
…/mywebapp/
- index.html (and other web pagesおよびその他の Web ページ)
- WEB-INF/
- web.xml (defines web application resources and configurationWeb アプリケーションのリソースと設定を定義)
- classes/ (contains Java classesクラスを含む)
- lib/ (contains Java Jar librariesライブラリを含む)
...
...
...
...
...
...
...
Nexaweb に対応したアプリケーションは、一部の追加リソースとまったく同じ構造を持ちます。
Nexaweb Platform リソースの追加
- index.jsp - Nexaweb
...
- はこのファイルを使用して、ユーザーの Web ブラウザ内で Nexaweb クライアントのコードを起動します。index.jsp が開発プロジェクトに既に存在する場合は、nexaweb-platform.zip の index.jsp を別のファイルにコピーして、Nexaweb を起動する準備ができたら、Web ブラウザからそのファイルを呼び出す必要があります。
- WEB-INF/web.
...
- xml -
...
- nexaweb-platform.zip
...
- ファイルは、既存のプロジェクトの WEB-INF/web.xml
...
To add Nexaweb Platform to a new or existing web application, follow these steps:
...
- ファイルに追加のアイテムを統合します。このような追加のエントリによって、Nexaweb サーブレットが定義および設定されます。これらのサーブレットは、Nexaweb が正しく機能するために、Web アプリケーション内に存在する必要があります。
- 新しいプロジェクト ディレクトリ (例: mywebapp) を作成します。
- <nexaweb install>/dist/nexaweb-platform.zip
...
- をこのディレクトリに解凍します。
…/mywebapp/
- index.jsp (lauches the Nexaweb clientクライアントを起動)
- Nexaweb/ (public Nexaweb resources for JVM detection, etc.JVM の検出などに使用される Nexaweb の公開リソース)
- WEB-INF/
- web.xml (Nexaweb web application resources are included by the Nexawebify processNexawebify プロセスにより、Nexaweb Web アプリケーションのリソースが含まれる)
- nexaweb-xxx.xml (Nexaweb configuration informationの構成情報)
- lib/ (Nexaweb libraries are insertedライブラリが挿入される)
- Nexaweb/ (contains Nexaweb private resourcesの非公開リソースを含む)
...
...
An even simpler way to get started is to leverage the existing samples provided with Nexaweb, their Apache ANT build files and the ‘nexawebify’ task.
...
All of the samples provided with Nexaweb include an Apache ANT build file and Nexaweb Studio project files. Using one of these samples as a starting point for your Nexaweb-enabled application will save you a great deal of time as you will start with a best practices project already configured.
...
ANT を使用した、Nexaweb に対応したアプリケーションのビルド
...
...
...
...
To use existing build files, follow these steps:
- Copy the build.xml and build.properties files from the root directory of an existing project into the root directory of the current project.
- Edit the build.xml file to specify the current project name at the top of the file.
- Edit the build.properties file to specify the Nexaweb home directory on this system.
You can use ANT to build the project from Nexaweb Studio or at the command line.
Using Nexaweb Studio
To use Nexaweb Studio to build the project, follow these steps:
- In the Java Perspective, select Show View > Other > ANT.
The ANT view opens at the bottom of the workbench. - Drag the build.xml file for this project into the ANT view.
The ANT view displays a list of the projects you can build. - Double click on dist, to build the project.
A WAR file appears in this project's /dist directory.
Using the Command Line
...
- build.xml ファイルと build.properties ファイルを、既存のプロジェクトのルート ディレクトリから現在のプロジェクトのルート ディレクトリにコピーします。
- build.xml ファイルを編集して、ファイルの一番最初で現在のプロジェクト名を指定します。
- build.properties ファイルを編集して、このシステムの Nexaweb ホーム ディレクトリを指定します。
- Java パースペクティブで、[Show View、[Other、[ANTの順に選択します。] ]]
ANT ビューがワークベンチの下側に開きます。 - このプロジェクトの build.xml ファイルを ANT ビューにドラッグします。
ビルド可能なプロジェクトのリストが ANT ビューに表示されます。 - dist をダブル クリックしてプロジェクトをビルドします。
WAR ファイルがこのプロジェクトの /dist ディレクトリに表示されます。
- コマンド プロンプトで、ビルドするプロジェクトのルート ディレクトリに移動します。
- MS-Windows 環境の場合は、「%ANT_HOME%\bin\ant.ext build.
...
Procedure for deploying the application to your Servlet container
...
- xml」と入力して Enter キーを押します。
WAR ファイルがこのプロジェクトの /dist ディレクトリに表示されます。
サーブレットコンテナにアプリケーションをデプロイする手順