i am using MII workbench as IDE and not eclipse,, so i am not sure if i can see the compilation error details , currently it shows some compiling error.
this function works perfect
str = java.net.URLEncoder.encode(str , "UTF-8");
all good, problem comes when i send URL encoded BASE64 string in a Query template call via sendRedirect of Servlet JSP method.
for long enocded string, sendRedirect does not work and shows "Page Not Found "