As far as I understand though, I *could* return a URL, this is perfectly valid no?
So I'm kind of curious as to why it doesn't work....

On 18/06/10 15:58, Christophe Cordenier wrote:
Hi

You'd better return a Link built via the LinkSource service. So Tapestry
encode the event/page context for you.

2010/6/18 Joel Halbert<j...@su3analytics.com>

Hi Folks,

I have an onSubmit from which i return a URL, which all works fine, unless
I have a path fragment with certain characters, such a spaces.

So If I return a URL such as:

http://localhost:8080/web/buy/sports tops

I get:


Input string 'sports tops' is not valid; the character ' ' at position 7 is
not valid.
From:
org.apache.tapestry5.internal.services.URLEncoderImpl.decode(URLEncoderImpl.java:143)



More suprisingly, If I URL encode the path using either + or %20 for spaces
I get pretty the same e.g.:
Input string 'sports+tops' is not valid; the character '+' at position 7 is
not valid.
From:
org.apache.tapestry5.internal.services.URLEncoderImpl.decode(URLEncoderImpl.java:143)



Any clues here? I'm using 5.1.0.5
Thx
Joel





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

Reply via email to