Re: Link encoded twice (thanks)

2009-08-06 Thread Sebastian Hennebrueder
Thank you to all of you. Howard Lewis Ship schrieb: Object onActionFromUrlresponse() throws Exception { return new URL("http", "www.lailuna.de", ""); } Tapestry can capture the exception, if any, and wrap it as a RuntimeException. On Thu, Aug 6, 2009 at 7:08 AM, Sebastian Hennebrueder wrote:

Re: Link encoded twice

2009-08-06 Thread Howard Lewis Ship
Object onActionFromUrlresponse() throws Exception { return new URL("http", "www.lailuna.de", ""); } Tapestry can capture the exception, if any, and wrap it as a RuntimeException. On Thu, Aug 6, 2009 at 7:08 AM, Sebastian Hennebrueder wrote: > Thiago H. de Paula Figueiredo schrieb: >> >> Em Thu,

Re: Link encoded twice

2009-08-06 Thread Sebastian Hennebrueder
Thiago H. de Paula Figueiredo schrieb: Em Thu, 06 Aug 2009 07:35:17 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! To redirect to an external URL, all you need to do is to return a java.net.URL instance from an event handler method. Hello, I found this solution as well but the cod

Re: Link encoded twice

2009-08-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Aug 2009 07:35:17 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! To redirect to an external URL, all you need to do is to return a java.net.URL instance from an event handler method. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor

Re: Link encoded twice

2009-08-06 Thread Otho
You read that? http://wiki.apache.org/tapestry/Tapestry5LinkingToNonTapestryURIs 2009/8/6 Sebastian Hennebrueder > Hello, > > I supect if the Link doesn't get encoded twice. > > Once in LinkImp > public String toRedirectURI() > { > return appendAnchor(response.encodeRedirectURL(buildURI

Link encoded twice

2009-08-06 Thread Sebastian Hennebrueder
Hello, I supect if the Link doesn't get encoded twice. Once in LinkImp public String toRedirectURI() { return appendAnchor(response.encodeRedirectURL(buildURI())); } and once in ResponseImpl public void sendRedirect(Link link) throws IOException { Defense.notNull(link, "l