Results 1 to 4 of 4

Thread: View layer for REST-based Web Services

  1. #1
    Join Date
    Aug 2004
    Posts
    25

    Default 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. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    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.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3
    Join Date
    Aug 2004
    Posts
    25

    Default

    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.)

  4. #4
    Join Date
    Aug 2004
    Posts
    25

    Default

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

Similar Threads

  1. Replies: 9
    Last Post: Nov 1st, 2005, 10:36 PM
  2. Exposing Services in a JMS based application
    By rsheldon in forum Architecture
    Replies: 1
    Last Post: Sep 21st, 2005, 12:56 AM
  3. Replies: 1
    Last Post: Sep 21st, 2005, 12:56 AM
  4. planning major migration to spring
    By wexwarez in forum Architecture
    Replies: 21
    Last Post: May 23rd, 2005, 01:13 AM
  5. Content Provider vs View Model
    By Martin Kersten in forum Swing
    Replies: 21
    Last Post: Mar 10th, 2005, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •