This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Spring Framework: Require to call two types of controller at one form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Spring Framework: Require to call two types of controller at one form " Watch "Spring Framework: Require to call two types of controller at one form " New topic
Author

Spring Framework: Require to call two types of controller at one form

Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Hi All,

I am facing a problem in my spring application while implementing my search module.
I have few search fields on my search page and i am using the "SimpleFormController" controller for searching. Obviously onSubmit() method will be called on clicking the submit button of my form.
It performs the search very well. But after performing this search the results comes in the form of pagination with 1,2,3.....n number of pages.
And on clicking each of these numbers i have to call the same method i.e.
onSubmit() method. But these numbers are just hyperlinks i cant not submit the form on clicking them.
They are like :



I am not finding any solution how to submit this form and again calling onSubmit() method or should i use another spring controller or should i use separate controller on clicking but thats not the best way.
Please advise me.
I will be very thankful to you for this.
Regards,


Khushwinder
 
GeeCON Prague 2014
 
subject: Spring Framework: Require to call two types of controller at one form