Re: Using WOHyperlink, Redirect to Normal HTML Page
Re: Using WOHyperlink, Redirect to Normal HTML Page
- Subject: Re: Using WOHyperlink, Redirect to Normal HTML Page
- From: David LeBer <email@hidden>
- Date: Thu, 4 Feb 2010 08:09:57 -0500
On 2010-02-04, at 5:27 AM, Sreenivasulu A wrote:
> Hi All,
>
> Using WOHyperlink how to redirect to a normal HTML Page in WebObjects? Will it work for redirecting to Normal HTML Page? If it is possible, please give me one example to redirect to a normal HTML page.
> I want to redirect to normal html page when I click on Logout button, and from this normal html page I will redirect to "www.google.com".
WORedirect?
<wo:link action="performRedirect">Go now</wo>
...
public WOActionResults performRedirect() {
WORedirect redirect = new WORedirect(context());
redirect.setUrl(THE_URL);
return redirect;
}
/* Typed directly into email not tested your milage may vary not valid where prohibited by law */
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden