In situ formation of new crosslinking agents from acrylate derivatives and bisepoxides