Hi , I am moving from one struts module to another . I am using org.apache.struts.actions.SwitchAction. I need to initialize a form in action class before reaching Switch Action. I have coded like this . DynaValidatorForm checkOutForm = ( DynaValidatorForm ) new CheckoutDynaValidatorForm( ) ; checkOutForm.set( CheckoutConstants.PRODUCT_TYPE ,PHConstants.P_ITEM ); is this the correct way to do it . Can someone suggest better way to do it. I am getting null pointer at checkOutForm.set( CheckoutConstants.PRODUCT_TYPE ,PHConstants.P_ITEM ); Thanks Raj