Fix strange 404 error in server

Use view bean to specify view class instead of view name.