I couldn't seems to run this line inside a jsp declaration.URLEncoder.encode("Hello World", "UTF-8");Are there any restrictions regarding this? Putting it outsidedeclaration works fine.