JSP + Turbine Configuration

JSP + Turbine の設定

It is quite possible to use JSP with Turbine. In order to do so, you need to tweak the existing configuration in the TurbineResources.properties file as described below. This is an evolving document, if there are still errors in this configuration, please subscribe to the Turbine Users list and let us know. Also note that this file is checked into Turbine's CVS tree under xdocs/jsp-configuration.xml. We appreciate all patches and contributions that improve this document.

Turbine で JSP を使うことは大いに可能です。 順番に行うには、下に記述されるように TurbineResources.properties ファイルにある設定をする必要があります。 これは発展するドキュメントですので、この設定にまだエラーがあれば、 Turbine User list を購読して、知ることが出来るようにしてください。同様にこのファイルが xdocs/jsp-configuration.xml の下で Turbine の CVS ツリーの中にあることに注意して下さい。私たちはこのドキュメントを改良するすべてのパッチと寄付を理解します。

In TurbineResources.properties, search for the key values and modify/verify the following settings:

TurbineResources.properties で、キー値と modify/verify を捜し次の設定に修正をし検証してください :

template.homepage=/index.jsp (or whatever jsp you want for the start
                              page)

template.login=/login.jsp    (or whatever jsp you want for the login 
                              form)

page.default=JspPage

services.JspService.classname=org.apache.turbine.services.jsp.TurbineJspService

If you want to use "complete" JSP pages (rather than using Turbine's model of having separate files for the navigation components, etc.), then you must set the JspService.default.layout entry so that DefaultLayout is used:

あなたが( Turbine ナビゲーションコンポーネントなどのための分離されたファイルのモデルよりも) "完全な" JSP ページをお使いであれば、 、その時は JspService.default.layout 項目をセットする必要があり、その結果 DefaultLayout が使用されます :

services.JspService.default.layout = DefaultLayout

Place JSP pages in the <app>/templates/app/screens directory.

<app>/templates/app/screens ディレクトリに JSPページを置いて下さい。

Refer to the JSP pages in URLs as .../template/app/<xxx>.jsp

URL で .../template/app/<xxx>.jsp として JSPページを参照して下さい