Let L be a subspace lattice on a Banach space X and let δ:AlgL→B(X) be a linear mapping. If ∨{L∈L:L−⊉L}=X or ∧{L−:L∈L,L−⊉L}=(0), we show that the following three conditions are equivalent: (1) δ(AB)=δ(A)B+Aδ(B) whenever AB=0; (2) δ(AB+BA)=δ(A)B+Aδ(B)+δ(B)A+Bδ(A) whenever AB+BA=0; (3) δ is a generalized derivation and δ(I)∈(AlgL)′. If ∨{L∈L:L−⊉L}=X or ∧{L−:L∈L,L−⊉L}=(0) and δ satisfies δ(AB+BA)=δ(A)B+Aδ(B)+δ(B)A+Bδ(A) whenever AB=0, we obtain that δ is a generalized derivation and δ(I)A∈(AlgL)′ for every A∈AlgL. We also prove that if ∨{L∈L:L−⊉L}=X and ∧{L−:L∈L,L−⊉L}=(0), then δ is a local generalized derivation if and only if δ is a generalized derivation.