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

Reply via email to