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. |