Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Unable to understand the workflow of SimpleFormController in Spring.

Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All, I am trying out the application given in the spring-framework docs...
Section 4.5 : Adding a Form
I have implemented the application and its working fine. The problem is that I am not able to understand the flow, when I click on the link of Price Increase

From this url: http://localhost:8080/springapplication/
it goes to this url : http://localhost:8080/springapplication/

In springapp-servlet.xml under / we have the following

Please explain me the sequence of events in detail... what happens when it goes to http://localhost:8080/springapplication/ url on clicking Price Increase hyperlink

Also when I enter the % value and click on execute then it again goes to / and shows me the modified values.... How does this happen ??? Please explain me the flow ...

Please do clear my concepts ....
Thanks a lot....
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Follow this link, its an article on simpleformcontroller that will clear your concepts.


Ujjwal Soni

"A Well directed imagination is a source of great deeds !!!"
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ujjwal, Hi Siddharth,
I plan to use Spring framework for our new web based project.
Actually am quite confused as to which framework i should be using. Reading the info on the net i feel spring should be the best bet but am not sure yet.
Looks like you guys have been using spring for production applications.
Would you recommend the use of Spring? Any details reagrding benefits/disadvantages would be most welcome.

Thanks in advance,
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic