Hi,
I was wondering if it is possible to just return a response code instead of a view when using annotated controllers ?
Should I just create a method that accepts the HttpServletResponse and set the code and afterwards return null?
Regards,
Davy
Hi,
I was wondering if it is possible to just return a response code instead of a view when using annotated controllers ?
Should I just create a method that accepts the HttpServletResponse and set the code and afterwards return null?
Regards,
Davy
Well you could, but that would be passed on to a view resolver and being used as a view name. So that wouldn't accomplish what you where looking for.I was wondering if it is possible to just return a response code instead of a view when using annotated controllers ?
That's the way to do it I and the only way as I see it.Should I just create a method that accepts the HttpServletResponse and set the code and afterwards return null?
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan