NxFilter Tutorial

  • EN English
  • DE Deutsch
  • ES Español
  • FR Français
  • IT Italiano
  • JP 日本語
  • BR Português
  • RU Русский
  • TR Türkçe
ディレクトリ構造と命名規則
NxFilter の GUI レイヤーはカスタマイズしやすいようにコア部分から分離されている。

カスタマイズ用のGUIパックの例があります。詳しくは を参照してください。 NxFilter用サンドウォッチGUIパック


JSP ファイルの命名規則
NxFilter の GUI レイヤは簡単にカスタマイズできるように設計されています。 コア部分とは完全に分離されています。また、メニュー構造に対応した命名規則があります。 を簡単に見つけることができます。例えば Policy > Free Time on NxFilter menu the file you need to edit is /nxfilter/webapps/policy,free_time.jsp.

NxCloud の場合、オペレータ固有のメニューがあります。JSP ファイルがオペレータ固有のメニューの場合 zop'接頭辞が付きます。

    ex) zop,policy,free_time.jsp


以下の構造 /nxfilter/webapps directory
すべてのJSPページを /nxfilter/webapps and we don't use any subdirectory for keeping JSP pages. This is for simplicity. Everything you need to modify is in /nxfilter/webapps  directory. It has the following structure.

/nxfilter/webapps
- error
- example
- img
- include
- lib
- WEB-INF

/の中/webapps/error directory, we have the error pages for HTTP error codes. If you want to have an error page for a specific HTTP error code, you can define it in /webapps/WEB-INF/web.xml.

HTTP 404エラーは特別な目的のために使います。HTTP 404エラー用のカスタムエラーページを定義してはいけません。

In /nxfilter/webapps/example directory, we have some example JSP pages for custom login module.

In /nxfilter/webapps/imgウェブページ用の画像ファイルを保存します。

In /nxfilter/webapps/include、他のJSPファイルにインクルードするための共通JSPファイルがあります。

/include/lib.jspは、すべてのJSPファイルに共通のライブラリファイルです。ウェブ開発のためのユーティリティ関数 JSPページの初期化コードを実行し、認証チェックも行います。

In /nxfilter/webapps/libCSSとjavascriptファイルがあります。

NxFilterの組み込みWebサーバとして組み込みTomcatを使用しているため、'WEB-INF'があります。


カスタマイズしたGUIを別のディレクトリに分ける

NxFilter の GUI をカスタマイズする場合、元のファイルを直接変更するのは良いアイデアではありません。そのため 将来の参考のために別のディレクトリを作成し、その中にすべてのファイルをコピーすることをお勧めします。 /nxfilter/webapps into the new directory and then modify these copied files. To make things easier, NxFilter supports 'www_dir' option on /nxfilter/conf/cfg.properties file.

カスタム GUI を /nxfilter/myweb ディレクトリに置いて、それを NxFilter のルートディレクトリとして使いたい場合。 として使いたい場合は、'cfg.properties' ファイルに次の行を追加する必要があります。

    www_dir = myweb

NxFilter を再起動します。