• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Regards,
 
reply
    Bookmark Topic Watch Topic
  • New Topic