Hi venkat penmatsa,
I think your form-bean tag only mapped with LoginForm class.
and also for a request should have only one form-bean attribute that means either LoginForm bean or BankController bean
but you are casting the form object for two classes as you posted like this.
LoginForm l=(LoginForm)form;
BankController b=(BankController)form;
just put any one statement. Relevant what you mapped with the form-bean attribute.