>Six Perfections(ERROR!!! Union 投稿者:Six Perfections(ERROR!!! Union 2008/01/17 (木) 00:02:01        [qwerty]
> 	 * @param anoperation メソッド名
> 	 * @param anerrors ActionErrors
> 	 * @return 次画面遷移を表すフォーワード・キーを返す
> 	 * @throws Exception 例外発生時、Exceptionを投げる
> 	 */
> 	protected String executeDispatch(
> 		ActionMapping amapping,
> 		ActionForm aform,
> 		HttpServletRequest arequest,
> 		HttpServletResponse aresponse,
> 		String anoperation,
> 		ActionErrors anerrors)
> 		throws Exception {
> 		String aresult = "";
> 		Method aselectMethod = null;
> 		// Actionクラスでで宣言した全publicメンバメソッドの配列を取得
> 		Method[] amethods = this.getClass().getMethods();
> 		// 指定されたメソッド名と一致するメソッドを検出
> 		for (int anindex = 0; anindex < amethods.length; anindex++) {
> 			Method amethod = amethods[anindex];
> 			if (anoperation.equals(amethod.getName())) {
> 				// 該当するメソッドを検出したので、ループを抜ける
> 				aselectMethod = amethod;
> 				break;
> 			}
> 		}
> 		// 該当するメソッドを検出したかチェック
> 		if (aselectMethod != null) {
> 			// 検出した場合
> 			try {
> 				// 検出したメソッドを呼び出す
> 				aresult =
> 					(String)aselectMethod.invoke(
> 						this,
> 						new Object[] {
> 							amapping,
> 							aform,
> 							arequest,
> 							aresponse,
> 							anerrors });
> 			} catch (InvocationTargetException e) {
> 				// 呼び出されたメソッドが例外をスローする場合
> 				// スローされた例外をそのままスロー
> 				throw (BJSException)e.getTargetException();
> 			}
> 		} else {
> 			// 未検出の場合、例外を投げる
> 			throw new BJSException("operationで指定されたメソッドが定義されていません。");
> 		}
> 		return aresult;
> 	}
> 	/**
> 	 * 初期化処理を行います。
> 	 * 初期化処理では次の処理を行います。<br>
> 	 * 1.トランザクショントークンのチェック<br>
> 	 * 2.DB接続の初期化
> 	 * @param arequest HttpServletRequest
> 	 * @throws Exception 例外発生時、Exceptionを投げる
> 	 */
> 	protected void init(HttpServletRequest arequest) throws Exception {
> 		ActionServlet aservlet = this.getServlet();
> 		ServletContext acontext = aservlet.getServletContext();
> 		// 画面IDのチェック
> 		if (arequest.getServletPath().equals("/R010.do")) {
> 			// ログイン画面ならトランザクショントークンをリセット
> 			resetToken(arequest);
> 		} else {
> 			// ログイン画面以外ならトランザクショントークンをチェックする
> 			// トランザクショントークンが不正である場合、例外を投げる
> 			if (!isTansactionToken(arequest)) {
> 				throw new BJSException("不正なアクセスを検出しました。");
> 			}
> 		}
> 		// DB接続を初期化
> 		DataSourceManager.init(
> 			aservlet.getInitParameter(ConstDefine.INIT_PARAM_DBURL),
> 			aservlet.getInitParameter(ConstDefine.INIT_PARAM_DBUSER),
> 			aservlet.getInitParameter(ConstDefine.INIT_PARAM_DBPASSWORD));
> 	}

ERROR!!! Union between the opposite sexes to me is frequent.
ERROR!!! Union between the opposite sexes to me is frequent.
ERROR!!! Union between the opposite sexes to me is frequent.
ERROR!!! Union between the opposite sexes to me is frequent.
ERROR!!! Union between the opposite sexes to me is frequent.

参考:2008/01/17(木)00時00分11秒