Can any one tell me how I can return string message from controller?
If i just return a string from a controller method then spring mvc treating it as a jsp view nam
What about:
PrintWriter out = response.getWriter(); out.println("THE_STRING_TO_SEND_AS_RESPONSE"); return null;
This woks for me.