What's missing is any link from the form element names on the JSP to action properties: if you're not implementing ModelDriven and providing the TestBean as the model, "name" and "roll" (I think you mean "role", by the way, unless it's specifically a bakery ordering system) there's no properties available on the stack named "name" and "roll".
Joined: Aug 04, 2008
Thanks a lot for the reply ... it was a silly mistake on my part there were two getters and setters with the same name in diferrent beans. e.g.
as soon as i renamed the getters and setters appropriately it started working fine.
One thing though i am confused as to why this happens .. its in a diferrent after all .. is struts not able to figure out which getter or setter to call ?