<?xml version="1.0" encoding="Shift_JIS"?>
<!--
  Copyright 2003 The Apache Software Foundation.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

  $Id: velservlet.xml,v 1.4 2005/02/14 13:31:05 nose Exp $
-->
<document>

  <properties>
    <title>VelocityViewServlet</title>
    <author email="sidler@apache.org">Gabriel Sidler</author>
    <author email="geirm@apache.org">Geir Magnusson Jr.</author>
    <translator email="nekop@programmers.jp">木村 貴由</translator>
    <translator email="nose@intellilik.co.jp">野瀬 直樹</translator>
    <projectfile>xdocs-ja/view/menu.xml</projectfile>
    <original>Velocity View For Struts</original>
  </properties>

  <body>

  <section name="Welcome to VelocityServlet" alias="VelocityServlet へようこそ!">

    <primary>
    <p>VelocityServlet is a subproject of Velocity. Its goals is to create a 
    standalone Velocity servlet that can be used for template rendering 
    in Web applications.</p>
    </primary>
    <p>VelocityServlet は Velocity のサブプロジェクトです[訳注: この記述はVelocityToolsができる前の古い記述です]。
    ウェブアプリケーションでテンプレートをレンダリングできるスタンドアロンの Velocity サーブレットを作成することが目的です。</p>
    <primary>
    <p>Intended audience of this subproject are Web
    application developers that plan on adding Velocity as a view layer
    technology to their Servlet-based web application framework. VelocityServlet 
    offers the following key features:</p>
    </primary>
    <p>このサブプロジェクトの対象は、サーブレットベースのウェブアプリケーションフレームワークのビューレイヤテクノロジとして Velocity を使用しようとするウェブアプリケーション開発者です。
    VelocityServlet は以下の主な機能を提供します:</p>
    
    <primary>
    <ul>
        <li>VelocityViewServlet provides is a standalone Java servlet that renders Velocity 
            templates. Its class name is 
            <code>org.apache.velocity.tools.view.servlet.VelocityViewServlet</code>.
            It can be invoked either directly from Web clients or from other servlets
            by forwarding request for template rendering to it. Its usage is
            similar to the JSPServlet for rendering JSP pages.</li>
        <li>VelocityViewServlet makes ServletRequest attributes, HttpSession attributes and 
            ServletContext attributes automatically available to the template designer 
            through the Velocity context. It is not necessary to explicitely
            populate the Velocity context.</li>
        <li>VelocityViewServlet offers toolbox support. It is possible to define a set
            of view tools (view helpers) that are made available to the template
            designer automatically through the Velcity context.</li>
        <li>Velocity log output can be redirected to the log infrastructure 
            of the Web application. By default, the log is directed to the
            logging facility provided by the Servlet API.</li>
    </ul>
    </primary>
    <ul>
        <li>VelocityViewServlet は Velocity のテンプレートをレンダリングするスタンドアロンの Java サーブレットを提供します。
            クラスの名前は <code>org.apache.velocity.tools.view.servlet.VelocityViewServlet</code> です。
            これはウェブクライアントから直接、または他のサーブレットからリクエストがフォワードされたときに、テンプレートのレンダリングのために呼び出されます。
            使い方は JSP をレンダリングする JSPServlet によく似ています。</li>
        <li>VelocityViewServlet は ServletRequest の属性、 HttpSession の属性、 ServletContext の属性を Velocity コンテキストを通して、自動的にテンプレートデザイナに提供します。
            明示的に Velocity コンテキストを設定する必要はありません。</li>
        <li>VelocityViewServlet はツールボックスをサポートしています。
            ツールボックスには、 Velocity コンテキストを通して、自動的にテンプレートデザイナに提供されるビューツール (ビューのヘルパー) のセットを定義することができます。</li>
        <li>Velocity のログ出力はウェブアプリケーションのログ機構へリダイレクトすることが可能です。
            デフォルトでは、ログはサーブレット API で提供されているログ機能へ出力されます。</li>
    </ul>
       
    <primary>
    <p>Using VelocityViewServlet, it becomes possible to write Web applications that are 
    independent of a particular view technology. This opens a straightforward
    migration path between JSP pages and Velocity templates as the view layer
    technology in Web applications.</p>
    </primary>
    <p>VelocityViewServlet を使用し、特定のビューテクノロジに依存しないウェブアプリケーションを作成することが可能になります。
    JSP から Velocity テンプレートへ、ウェブアプリケーションのビューレイヤテクノロジのストレートな移行を可能にします。</p>

    <primary>
    <p>A typical application case for VelocityViewServlet is to use it in conjunction
    with a Servlet-based web application framework. 
    <a href="../struts/index.html">VelocityStruts</a> is a Velocity
    subproject that brings Velocity to the Struts world and is the first 
    application that takes advantage of VelocityViewServlet.</p>
    </primary>
    <p>VelocityViewServlet を適用する典型的なケースとしては、サーブレットベースウェブのウェブアプリケーションフレームワークを併用することです。
    <a href="../struts/index.html">VelocityStruts</a> は Velocity を Struts の世界へ統合する Velocity のサブプロジェクトであり、 VelocityViewServlet の利点を享受することのできる最初のアプリケーションです。 </p>


    <primary>
    <p><strong>To be added</strong></p>
    </primary>
    <p><strong>追加予定</strong></p>
    <primary>
    <ul>
        <li>Examples</li>
        <li>Configuration of Servlet</li>
        <li>Configuration of Toolbox</li>
        <li><a href="http://jakarta.apache.org/velocity/tools/javadoc/index.html">Javadoc</a></li>
    </ul>
    </primary>
    <ul>
        <li>例</li>
        <li>サーブレットの設定</li>
        <li>ツールボックスの設定</li>
        <li><a href="http://jakarta.apache.org/velocity/tools/javadoc/index.html">Javadoc</a></li>
    </ul>
  </section>
 
 </body>
</document>


