Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Clear Struts Navigation Flow

 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) When first the request is made from a JSP/HTML/XSLT to the server , the controll first reaches Web.xml file.
2) it checks the mapping for /something.do in web.xml and finds the ActionServlet and loads ActionServlet.
3) As part of loading ActionServlet calls the init() as every other servlet does.
4) in init() it takes the init-parameters as struts-config.xml and loads the xml file.
what will happen in struts-config.xml ,how control goes to Business logic.I know Action class invokes business logic in model.
If any data fetched from database , that will be stored in java beans. How this bean can be accessed to display outputs.
please explain the struts complete flow after 4th step.
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i cant understand meaning of following : "In Action class , have execute() which have return type of ActionForward. We can specify the business logic in Model and provide that object in execute(). " How Action class invokes business logic?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajendra Prakash wrote:i cant understand meaning of following : "In Action class , have execute() which have return type of ActionForward. We can specify the business logic in Model and provide that object in execute(). " How Action class invokes business logic?

By calling a method on an object.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please go through some basic Struts tutorials; they will address all of these problems.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic