You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Fernando Wermus <fe...@gmail.com> on 2010/01/12 19:48:48 UTC

Re: requestParameters and %20

Late, but thanks

On Sun, Aug 30, 2009 at 10:01 AM, James Carman <jcarman@carmanconsulting.com
> wrote:

> Why would they need to write something for it when there is something in
> the
> Java language for it?
>
> On Sun, Aug 30, 2009 at 12:43 AM, Fernando Wermus <
> fernando.wermus@gmail.com
> > wrote:
>
> > I thought that wicket may have some class for this situation.... isnt
> true?
> >
> > On Sat, Aug 29, 2009 at 10:45 PM, James Carman <
> > jcarman@carmanconsulting.com
> > > wrote:
> >
> > > have you tried java.net.URLDecoder?
> > >
> > > On Sat, Aug 29, 2009 at 3:43 PM, Fernando Wermus
> > > <fe...@gmail.com>wrote:
> > >
> > > > I am serving a file from disk which its name is "red apple.jpg".
> > > > From html source it renders as follows
> > > >
> > > > <img src="a/b/c/d/red apple.jpg" />
> > > >
> > > > I found that On method getUri() and a variable into requestParameters
> > the
> > > > image name has been translated to red%20apple.jpg
> > > >
> > > > new URIRequestTargetUrlCodingStrategy("/" + "thumbnail") {
> > > >
> > > > @Override public IRequestTarget decode(RequestParameters
> > > requestParameters)
> > > > {
> > > >
> > > > try {
> > > >
> > > > return serveImage(getURI(requestParameters), ....);
> > > >
> > > > } catch (Exception e) {
> > > >
> > > > throw new WicketRuntimeException(e);
> > > >
> > > > }
> > > >
> > > > }
> > > >
> > > > };
> > > >
> > > >
> > > > Which is the best way to manage this situation?
> > > >
> > > >
> > > > Do I have just implement a method from my own converting %20 or there
> > is
> > > a
> > > > wicket way to do this job?
> > > >
> > > >
> > > > I am using wicket 1.3.6
> > > >
> > > > thanks in advance
> > > >
> > > > --
> > > > Fernando Wermus.
> > > >
> > > > www.linkedin.com/in/fernandowermus
> > > >
> > >
> >
> >
> >
> > --
> > Fernando Wermus.
> >
> > www.linkedin.com/in/fernandowermus
> >
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus