The moose likes Other Application Frameworks and the fly likes Can a controller work with spring? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Can a controller work with spring? " Watch "Can a controller work with spring? " New topic
Author

Can a controller work with spring?

Garrett Smith
Ranch Hand

Joined: Jun 27, 2002
Posts: 401
I know almost nothing about spring. I'm a UI Eng @ work.

The Spring guys I'm working with don't seem to know how to process a slightly complicated HTML form in the "normal" manner.

The job is not getting done.

They are telling me that the form -- one form -- has to submit to different URLs. (5 URLs, to be exact). Each URL points to an ".aph handler", and is to be built in javascript (depending on which button was clicked, and for one particular button, I am to send data to 2 different handlers, subsequently). Each URLs will be passed to an XMLHttpRequest. Then, when I get a response, I am to reload the page in javascript.

My view: It is inappropriate and unnecessarily complicated to shoehorn front-controller logic into javscript, doing so will require more maintenance and hurt performance on the client. Awkward design to say the least.

I proposed sending the form and allowing the server to process the form action. I proposed:
Handler submits to itself
Request dispatcher forwards to more specified handler/servlet, which includes the original handler.

This proposal was refused because he said it was too complicated. I don't know enough about Spring to know otherwise. Is it possible?

He insist that it be done his way, and I insist that his way is not good (reasons above). Am I wrong? How can I propose the idea in a way that makes sense (to both of us). I am also stubborn, but I do want to complete the task. Making bonus is important, at least to me.

What is the best way to handle the situation?
[ April 29, 2006: Message edited by: Garrett Smith ]

comp.lang.javascript FAQ: http://jibbering.com/faq/
 
 
subject: Can a controller work with spring?
 
developer file tools