I am using spring mvc with freetemplate.
In asp.net, you can write straight to the browser using Response.Write(\"hello, world\");
Can you do this in spring
I'm sure it is possible in some contexts. For example, if you have the HttpServletResponse object available to you (as you do in a Controller, or if you write your own View), then you can call getWriter() or getOutputStream() and write to that.
But you need to be careful to make sure that what you are doing doesn't interfere with your use of FreeMarker templates. And I'm not sure if you could manage it from within a FreeMarker template.