Forums: Open Discussion (Thread #18863)

ポップアップ表示について (2008-05-30 09:57 by Anonymous #36942)

BLogicの実行結果をポップアップ画面で出力するため、
javascriptで、
showModalDialog( "./XXXDSP.do?event=XXXXX&param1=XXXX", window, XXXX );
のようにDispatchActionを実行していますが、

[2008/05/30 09:35:56][DEBUG][DispatchAction] doExecute() called.
[2008/05/30 09:35:56][WARN][ActionMapping] Unable to find 'default' forward.

このように、forwardがうまくいきません。

ちなみに、DispatchActionの場合は、通常、Inputタグ(hiddenタイプ)の value に forward先を指定するものだと認識しております。

結果的にポップアップで表示できればよいので、他によい方法があればご教示下さい。

よろしくお願いいたします。

Reply to #36942×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: ポップアップ表示について (2008-05-30 11:18 by hachihachi #36944)

showModalDialogを利用して試してみましたが、問題なく動作するようです。
以下は terasoluna-server4jweb-funcsample_2.0.1.0.zip の「WH-01 ビジネスロジック実行機能」で試したスクリプトです。
function hoge() {
showModalDialog("/functionsample-thin/blogic/blogicDispatch.do?event=forward_blogic&value1='a'&value2='b'",window,"dialogWidth:640px;dialogHeight:480px");
}

注意点としては
 ・フォワード先の頭に"forward_"を付けていること
 ・showModalDialogの場合キャッシュからの表示を優先されるため、キャッシュを避ける
  →<head>に<meta http-equiv="Pragma" content="no-cache">を入れる
  →URLにランダム値を付与する
Reply to #36942

Reply to #36944×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: ポップアップ表示について (2008-05-30 11:44 by Anonymous #36945)

早速のご回答ありがとうございます。

"forward_"を付け忘れており、修正して正常に動作することが確認できました。

また、キャッシュについてもご教示下さりありがとうございました。
Reply to #36942

Reply to #36945×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login