Announcement Announcement Module
Collapse
No announcement yet.
View layer for REST-based Web Services Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • View layer for REST-based Web Services

    What is the preferred view layer for REST web services implemented using Spring MVC? I sort of hacked it to use a servlet that generates XML as the view layer in one application, but there are some problems with that approach that I'm having trouble recalling right now.

    Is there a better way? Does it make sense to generate XML using JSP?

  • #2
    I haven't looked closely at REST, but hopefully you would need only to implement your own View. What about using Spring's XML
    View superclasses?
    Does it make sense to generate XML using JSP?
    No IMO.

    Comment


    • #3
      Sounds perfect, which classes are those?

      (I've been looking through the javadoc and I can't find anything that's obviously a superclass for an XML view.)

      Comment


      • #4
        Never mind, I assume you're talking about AbstractView or InternalResourceView.

        Comment

        Working...
        X