You need to sign in to do that
Don't have an account?
efantini
Problem with URL and WIL containing spaces
Apparently, in a web integration link, URL like the following :
http://timespace.agsmtel.it/TimeSpace/AGSMTEL/Offerte/{!Account_Name}/{!Opportunity_Name}/
are mistranslated into :
https://timespace.agsmtel.it/TimeSpace/AGSMTEL/Offerte/Vecomp+Impresa/Connettivit%C3%A0+sede/
with a space translated as a + instead of %20.
Within java script this does not occour because you can use the urlencode function. Can we use the same trick in here or do we have any special sintax to avoid it?
Many thanks
Enrico Fantini
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1
Cheers
Simon
yes, sure. But what should i do then if tomcat is configured to translate spaces as %20?
Thanks
Regards
Enrico Fantini
I used java.util.regex.replaceAll()in my jsp to substitute %20 for all the +'s in the incoming URL.
In my case I had spaces in a parameter called company and I replaced all of them with %20 by adding the following (remember to escape the + and the % with \\)...
String companyName = request.getParameter("company").replaceAll("\\+","\\%20");
Hope it works for you too.