Thread Rating:
  • 315 Vote(s) - 2.96 Average
  • 1
  • 2
  • 3
  • 4
  • 5
独立型アプレットから別WebページへのPOST
12-14-2012, 04:07 PM,
#1
独立型アプレットから別WebページへのPOST
独立型のアプレットから、あるWebページ(JSP)を別ブラウザで表示する際、リクエストパラメータを渡したいです。

browse-url を利用して、URLの後ろにクエリをつけるGET方式であれば実現可能だと思いますが、
URLにパラメータを表示したくないので、POSTで行いたいです。

Applet.browser-url-post は、独立型アプレットからは使えない(ヘルプでは「未実装」とある)という理解ですが、
独立型アプレットからWebページにPOSTして表示する方法はありますでしょうか。
12-17-2012, 12:40 PM,
#2
RE: 独立型アプレットから別WebページへのPOST
I think that the only way to show a POST result from an applet that is not in a web browser is to use EmbeddedBrowserGraphic inside the applet. Or if it is a privileged applet, you could make a local HTML file and put the POST inside it, and then use Applet.browse-url on the local HTML file, but some web browsers have security issues with doing some operations from a local file: url to an http: url so I am not sure if that will work for all of them or not.



12-18-2012, 10:30 AM,
#3
RE: 独立型アプレットから別WebページへのPOST
wbardwellさんありがとうございます。

一応、 EmbeddedBrowserGraphic を利用して、
browse-url-post した結果を新しいビューに表示すれば、
GETパラメータのついたURLを表示せずに済みますね。

ユーザーから、どうしてもブラウザで表示したい、という要望がなければ、
これでも問題ないかもしれません

Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('667')