Re: Correct "Logout" Action
Re: Correct "Logout" Action
- Subject: Re: Correct "Logout" Action
- From: Chuck Hill <email@hidden>
- Date: Tue, 29 Jul 2003 14:45:42 -0700
- Organization: Global Village Consulting, Inc.
What you are doing is fine. I've not seen that error in this context.
Does this avoid the error?
WORedirect redirect = pageWithName("WORedirect");
Chuck
Albert Jagnow wrote:
I have had a related question for a while, and I thought I would ask it
since the topic came up. What if I don't want to direct the user to a
webobjects page after logout, just a normal url? I used the following
code in my application:
public WOComponent logout(){
session().terminate();
WORedirect redirect = new WORedirect(context());
redirect.setUrl("http://www.mysite.com/");
return redirect;
}
This code seems to work fine for the user, but I get an error in my
application output that says "No template found for component
WORedirect". Can I safely ignore this message or is there a better way
to do this?
--Albert
This e-mail (including any attachments) is covered by the Electronic
Communications Privacy Act, 18 USC. 2510-2521. It is confidential and
may be legally privileged. If you are not the intended recipient, you
are hereby notified that any retention, dissemination, distribution, or
copying of this communication is strictly prohibited. Please reply to
the sender that you have received the message in error, and then delete
it. Thank you.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.