Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7055541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:45:41+00:00 2026-05-28T03:45:41+00:00

When I send a request from JSP FORM, the server side automatically parses data

  • 0

When I send a request from JSP FORM, the server side automatically parses data to my ModelObject. But when I send requests from Backbone save() my ModelObject is empty on Server Side. How can I do it like as JSP FORMs?

    @RequestMapping(value = "/member/ajax*", method = RequestMethod.POST)
    public void onSubmitAjax(Member member, HttpServletResponse response, HttpServletRequest request) throws Exception {
        //member is empty           
        memberManager.saveMember(member); 

    }

when I use GET it’s working on Client Side:

@RequestMapping(value = "/member/ajax*", method = RequestMethod.GET)
    public
    @ResponseBody
    Member showForm(@RequestParam(required = false) Long id, HttpServletRequest request) throws Exception {
        Member member = memberManager.getMember(id);
        return member;
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:45:41+00:00Added an answer on May 28, 2026 at 3:45 am

    I wrote a Spring MVC 3.1 backend for Backbone.JS Todo sample application. The code of the CRUD Controller may help you.

    Based on your code sample, I think you should check that you have Jackson in your project dependencies, and use the following annotations for your onSubmitAjax method:

    @RequestMapping(method = RequestMethod.POST, consumes = “application/json”, produces = “application/json”) @ResponseStatus(HttpStatus.CREATED) @ResponseBody

    You should also try RESThub, a nice Spring + Backbone.js stack provided with documentation, tutorial and code samples (Disclaimer: I am RESThub lead developer).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to send a request to my server via GET, but qooxdoo sends
when using http post with flash that send ip address request from client computer
Trying to find a way to send a POST HTTPS request from Python to
What is the best way to send HTTP requests from Windows Powershell?
Ok, so I want to send AJAX requests to my website from my Flash
If I send this request to a page: http://www.server.com/show.xml?color=red&number=two Can I do something like
Can i send object or bean instead of sending parameters in jsp request to
I want to send array of my own objects to JSP page by request.
I need to send all requests for the directory home/alphauser to backend/alphauser, but not
here's i mode code! when i send http request from firefox it work fine!

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.