Hey Roshani,
Thanks for the prompt reply, that does help...
But i still have one question .....
Following are the points mentioned in Oreilly's Programming jakarta struts text....
The following steps illustrate how the framework processes ann ActionForm
for every request:
1. Check the mapping for the action and see if an ActionForm has been configured.
2. If an ActionForm is configured for the action, use the name attribute from the action element to look up the form bean configuration information.
3. Check to see if an instance of the ActionForm already has been created.
4. If an ActionForm instance is present in the appropriate scopee and it's the same type as needed for the new request, reuse it.
5. Otherwise, create a new instance of the required ActionForm & store it in the
appropriate scope (set by the scope attribute for the action element).
6. Call the reset( ) method on the ActionForm instance.
What does scope and type refer to in the 4th point?? There is just one instance for the Actionform for a particular url type. right??
I mean if i have a URL like
http://localhost:8080/MYapp/doThis.do?a=10&b=20&c=30 There will be just one instance of the actionform for all URLs of this type right...
I mean if another request
http://localhost:8080/MYapp/doThis.do?a=40&b=50&c=60 comes in a new ActionForm instance will not be created? Instead the actionform object passed to the Action Class will have new values for a,b,c right??