Cosminexus アプリケーション開発ガイド
cjjsp2javaコマンドの使用例を示します。基本的な使用例だけでなく,タグライブラリを使用する場合,includeディレクティブを使用する場合,および複数のJSPファイルを指定する場合の使用例についても示します。
タグライブラリとincludeディレクティブを使用していない,一つのJSPファイルからJavaソースファイルを生成する場合の使用例を示します。
D:\dev
└ webapp1
└ jsp
└ index.jsp
|
> D: > cd dev\webapp1\jsp > <Cosminexusインストールディレクトリ>\CC\web\bin\cjjsp2java index.jsp KDJE53400-I A JSP file was successfully translated. (date = YYYY/MM/DD hh:mm:ss, JSP file = D:\dev\webapp1\jsp\index.jsp, java file = D:\dev\webapp1\jsp\index$jsp.java) |
タグライブラリを使用する場合の使用例を示します。
D:\dev
├─ webapp1
| ├ jsp
| | └ index.jsp
| |
| └ WEB-INF
| ├ lib
| | └ taglib01.jar
| |
| └ taglib01.tld
└─ tmp
|
<%@ taglib uri="/hello.tld" prefix="hello" %> <HTML> <BODY> <hello:HelloWorld/> </BODY> </HTML> |
> D: > cd dev > <Cosminexusインストールディレクトリ>\CC\web\bin\cjjsp2java -d tmp -root webapp1 -taglib "/hello.tld" "/WEB-INF/taglib01.tld" webapp1\jsp\index.jsp KDJE53400-I A JSP file was successfully translated. (date = YYYY/MM/DD hh:mm:ss, JSP file = D:\dev\webapp1\jsp\index.jsp, java file = D:\dev\tmp\jsp\index$jsp.java) |
includeディレクティブを使用する場合の使用例を示します。
D:\dev
├─ webapp1
| └ jsp
| ├ index.jsp
| └ home.jsp
└─ tmp
|
<HTML> <BODY> <jsp:include page="/jsp/home.jsp" flush="true"/> </BODY> </HTML> |
> D: > cd dev > <Cosminexusインストールディレクトリ>\CC\web\bin\cjjsp2java -d tmp -root webapp1 webapp1\jsp\index.jsp KDJE53400-I A JSP file was successfully translated. (date = YYYY/MM/DD hh:mm:ss, JSP file = D:\dev\webapp1\jsp\index.jsp, java file = D:\dev\tmp\jsp\index$jsp.java) |
複数のJSPファイルからJavaソースファイルを生成する場合の使用例を示します。
D:\dev
└ webapp1
└ jsp
├ index.jsp
├ index01.jsp
└ index02.jsp
|
> D: > cd dev\webapp1\jsp > <Cosminexusインストールディレクトリ>\CC\web\bin\cjjsp2java index.jsp index01.jsp index02.jsp KDJE53400-I A JSP file was successfully translated. (date = YYYY/MM/DD hh:mm:ss, JSP file = D:\dev\webapp1\jsp\index.jsp, java file = D:\dev\webapp1\jsp\index$jsp.java) KDJE53400-I A JSP file was successfully translated. (date = YYYY/MM/DD hh:mm:ss, JSP file = D:\dev\webapp1\jsp\index01.jsp, java file = D:\dev\webapp1\jsp\index01$jsp.java) KDJE53400-I A JSP file was successfully translated. (date = YYYY/MM/DD hh:mm:ss, JSP file = D:\dev\webapp1\jsp\index02.jsp, java file = D:\dev\webapp1\jsp\index02$jsp.java) |
All Rights Reserved. Copyright (C) 2006, 2007, Hitachi, Ltd.