You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by jg...@web.de on 2008/05/17 15:45:13 UTC

how can I call a web url from actionlink

Hi,

I would like to have a link, where on click first some cleanup action will be done,
like for example closing a database connection etc, and then finally redirekt the
user to some absolute URL in the web.

How can I accomplish this?
I have something like this:

<a href="#" t:type="actionlink" t:id="quitGame">Quit</a>

@OnEvent (component="quitGame")
Object onQuit(){
	memory.quit();
	// more things to do before quitting
	return ?? // go to "http://www.someOtherWebspace.com"; 
}

thank you!
Juliane
_____________________________________________________________________
Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren!
http://freemail.web.de/club/landingpage.htm/?mc=025555


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: how can I call a web url from actionlink

Posted by Thiago HP <th...@gmail.com>.
Return an URL object:
 @OnEvent (component="quitGame")
 Object onQuit()  throws MalformedURLException {
        memory.quit();
        // more things to do before quitting
        return new URL("http://www.someOtherWebspace.com");
 }
-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org