Hello,

How can I access a page which has just called a DirectAction?
I want my DirectAction to initialize some variables of the Main Component and refresh it...

I try this but it creates a new session instead of using the existing one... :

public WOActionResults formSubmitAction()
{       
    Main page = (Main)pageWithName("Main");
String username= (String)this.request().formValueForKey ("username"); String password= (String)this.request().formValueForKey ("password");
    page.takeValueForKey(username, "username");
    page.takeValueForKey(password, "password");
    page.takeValueForKey(true, "isSubmitted");

    return page;
}

Thank you...

Bruno.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to