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

  • Home
  • SEARCH
  • 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 3613276
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:06:12+00:00 2026-05-18T22:06:12+00:00

I have a web application that integrates DWR 3 and Spring 3. All requests

  • 0

I have a web application that integrates DWR 3 and Spring 3. All requests are handled by the Spring’s DispatcherServlet. Everything works. When I request an AJAX request, it’s handled correctly by the backing DWR service bean annotated with @RemoteProxy. To return a response, my DWR service bean returns either an HTML string including the @DataTransferObject POJO or just the plain POJO.

What I want to do is in the DWR service bean I want it to forward the processing to a Spring @Controller bean. The AJAX request will still be processed by the DWR service but the real processing is delegated to the Spring controller bean. In other words the DWR service bean is just a service facade to the actual service. In this way I’m not duplicating logic.

Is this possible?

Let me clarify further.

In a normal non-AJAX application, when a user submits a form, here’s what happens:

  1. It’s forwarded to the
    DispatcherServlet
  2. Then to an @Controller annotated bean.
  3. The processing is then handled by @Service bean.
  4. Afterwards, the controller returns a ModelAndView.

In a DWR-AJAX application, when a user submits a form, here’s what happens:

  1. It’s forwarded to the DispatcherServlet still
  2. Then to a @RemoteProxy annotated
    bean. The processing is handled by
    this bean. That’s DWR’s service
    bean.
  3. Afterwards, this remote proxy bean returns either an @DataTransferObject POJO or just plain HTML string

Basically for the AJAX application,
after step 2, I want it to forward
to the @Controller bean so that
everything is still processed by
Spring.

  • 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-18T22:06:13+00:00Added an answer on May 18, 2026 at 10:06 pm

    Short answer is no.

    There is no place in a DWR request for a spring controller. DWR has great support for remoting spring beans, but there is little value that a controller could bring to this equation.

    That said there is no reason that I can think of that a spring 3.0 style annotated controller couldn’t be used as the exposed DWR bean. The restriction would be that the return type would not be ModelAndView rather it would just be your model object it’s self.

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

Sidebar

Related Questions

So I have a web application that integrates with several other APIs and services
I have a custom web application that integrates with a SharePoint (MOSS 2007) solution.
I have a web application that should behave differently for internal users than external
I have a web application that is becoming rather large. I want to separate
I have a web application that needs to take a file upload from the
I have this web application that has grown to an unmanageable mess. I want
I have a web application that's branded according to the user that's currently logged
I have a web application that allows a user to search on some criteria,
I have a web application that makes heavy use of the Session state to
I have a web application that comprises the following: A web project (with a

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.