Here we are calling the different method's depending on user request. Provide these methods in action class it will execute that method directly.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
The above process is applicable for struts2 and we achieve this using dynamic method invocation also. I'm not sure about struts1.x.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
In struts 1.x, the DispatchAction class should be used to achieve the action based method invocation.
In action tag of config xml you can define an attribute 'method' and this will decide the method to be invoked. The value for this attribute is passed on from the button click.
Thanks
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
a bit of art, as a gift, the permaculture playing cards