I think you can try the following :page.application().restoreSessionWithID(request ().stringFormValueForKey("wosid"), context());
Regards Fabrice On Mar 14, 2007, at 5:12 PM, WIESEN Bruno wrote:
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/fabrice% 40easyshadow.comThis email sent to [EMAIL PROTECTED]
www.easyshadow.com International Corporate Consulting Palais de la Scala 1 avenue Henri Dunant Suite 1155 MC - 98000 Monaco Skype: fabrice.pipart Tel. +377 97 98 21 04 (direct) Fax. +377 97 70 88 07
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]
