(CNN) -- President Barack Obama said Thursday that "Israel cannot accept rocket attacks from Gaza," and that the Jewish state has the right "to expect Hamas to renounce violence and recognize Israel's right to exist."