Announcement Announcement Module
Collapse
No announcement yet.
Response code with annotated controllers Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Response code with annotated controllers

    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

  • #2
    I was wondering if it is possible to just return a response code instead of a view when using annotated controllers ?
    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.

    Should I just create a method that accepts the HttpServletResponse and set the code and afterwards return null?
    That's the way to do it I and the only way as I see it.

    Comment

    Working...
    X