[mayaa-dev:71] Re: (source?) Re: Re: Mayaaのみでアプリケーションを作るためのフレームワーク

Yasuhiro Oguro [E-MAIL ADDRESS DELETED]
2008年 3月 5日 (水) 16:49:20 JST


お疲れ様です。小黒です。

> > ajsリクエストは全てSimpleFrontControllerServletで処理され、
これはScriptEnvironmentImplを初期化し・・・・えーっと。よくわからないので

SimpleFrontControllerServlet extends MayaaServlet

にして、
org.mozilla.javascript.Context#compileReaderで
> fooAction.djs
を拾って、_rhinoScriptを作ってあげればよいのかな?
そんでforwardはfooAction.djsの中で呼べるみたいだし・・・今回は
"/foo.ajs"から"contents/WEB-INF/template/fooAction.djs"に
固定ロジックで置き換えてみるです。(エンジンの設定を流用できそうなので)
・・・ってところでお時間になってしまいました。
明日のミーティング次第でコーディングに入りますね。

protected void doService(...) {
        CycleUtil.initialize(request, response);
        try {
            Engine engine = ProviderUtil.getEngine();
            setupCharacterEncoding(request,
                    engine.getParameter("requestCharacterEncoding"));
        Context cx = RhinoUtil.enter();
        Object ret = null;
        try {
            Scriptable scope = RhinoUtil.getScope();
		_rhinoScript = loadscript(request);
		_rhinoScript.exec(cx, scope);
		} catch (....

        } finally {
            CycleUtil.cycleFinalize();
        }
    }



---
NEEC System Technology Co.,Ltd. 
Y.Oguro <[E-MAIL ADDRESS DELETED]> ☆.。.:*・°



mayaa-dev メーリングリストの案内