thanks for your help, I tried the code you checked in, but it doesn't work, it still redirects me to the app relative http url.. this is because in the RedirectRequestTarget line 93:
response.redirect(redirectUrl); the response object is of type webResponse, which will not allow you to go to a non http url (with the exception being if it's https). I'll see if maybe I can look deeper into this problem, or maybe there is another way around it? thanks, Aaron igor.vaynberg wrote: > > this was a bug, fixed.get a snapshot, build yourself from svn, or wait > for the next release. > > -igor > > On Tue, Sep 2, 2008 at 4:51 PM, groffhibbitz <[EMAIL PROTECTED]> > wrote: >> >> Hi, I'm using a wicket link component in one of my pages and when the >> user >> clicks on the link i want it to check if they are logged in, and then >> redirect them to this FTP url: >> >> ftp://myftpaddress.com >> >> and I tried adding a RedirectToURLException("ftp://myftpaddress.com"); to >> the onclick of the link, but that just tries to send me to >> /app/ftp://myftpaddress.com .... that is.. relative to the root of my web >> application... >> >> If I use the ExternalLink class instead of the regular Link class, I >> can't >> add any logic to the onClick method (as there is no such method in an >> external link). >> >> Any thoughts on how to solve this problem? >> >> thanks in advance >> -- >> View this message in context: >> http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19280608.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19294906.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]