You can feed just a part of them, but that's not a solution for poverty. They need to be prepared for a job or at least giving them the opportunity to work if they want to.
You are absolutely right. Handouts are not a permanent solution. What the poor needs is jobs. Agriculture is not a solution, since the availability of farmland is quite limited. So, they need to be trained for various blue collar jobs in order to earn a living.