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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • 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...
spring-framework-2.5.1\docs\MVC-step-by-step\pdf\spring-mvc-step-by-step.pdf
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/hello.do
it goes to this url : http://localhost:8080/springapplication/priceincrease.do

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



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

Also when I enter the % value and click on execute then it again goes to /hello.do 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
Hi,

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

http://simpleformcontroller.150m.com/

Regards,

Ujjwal Soni

"A Well directed imagination is a source of great deeds !!!"
 
Greenhorn
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,
Rakesh
 
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
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic