Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!