Ok, the problem is in the turbine servlet, in the login action:

    private void loginAction(RunData data)
            throws Exception
    {
        ActionLoader.getInstance().exec(data, data.getAction());
        cleanupTemplateContext(data);
        data.setAction(null);
    }

The   cleanupTemplateContext(data) is intended to clean the Velocity Context
if available (actually it does)

This change is supposed to prevent the use of Tools based in a anon user
after there has been a succesful login into the app. But in the case of the
request based tools this seems inconvenient.

An�bal Rojas
[EMAIL PROTECTED]
58+212+242.66.62 / 43.79
Fax: 58+212+243.68.09

----- Original Message ----- 
From: "Edgar Gonz�lez" <[EMAIL PROTECTED]>
To: "'Turbine Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, April 15, 2004 3:54 PM
Subject: Integrating commons-validator in Turbine - Strange behavior in
Login action


Hi,



I have been working in the integration of commons-validator in Turbine.



I'm following the same approach used by Intake, a service and a request
pull-tool.



After a developed the service and the request pull-tool, I started to test
them using a Login Form.



My Login Action is a custom action which extends VelocityAction , because I
use some custom request tool like scarab does (scarabR).



But when the LoginAction is going to be executed all the request pull-tools
are initialized before AND AFTER, so in the Login template, the values
setted in the tools by the action are missing.



I copied the LoginAction code to other action, and tested it, and everything
works fine. The request tool are initialized only before the action is
executed.



What's happening with the pull-service and the LoginAction.?



I debugged the TurbinePullService and the log shows that the
populateWithRequestTools method is executed before and AFTER the LoginAction
execution



Any clue?



TIA

----------------------------------------------------------------------------
Edgar Gonz�lez Gonz�lez
VALHALLA Project, s.a.
Chief Technology Officer
Web:  <BLOCKED::http://www.valhallaproject.com/> www.valhallaproject.com
E-mail:  <BLOCKED::mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] /
<BLOCKED::mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
Phone: +58-212-242.4379 / 6662 / 4055 / 6475
Fax: +58-212-242.6809
"The limits of my language mean the limits of my world."
Ludwig Wittgenstein
----------------------------------------------------------------------------






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to