how do i do <logic:iterate>? my code as below. what are the things that i have to add/change. Im using hibernate and struts. thanks

Actionclass:
List lMessage= msgr.getMessages(sThreadId);
Vector vMsg=new Vector();
for(int i=0; i<lMessage.size();i++)
{
MessageForm oForm = (MessageForm) form;
msgObj = (Message) lMessage.get(i);
oForm.setThreadId(msgObj.getThreadId());
}


what should i do so that in my jsp page, i can <logic:iterate> and <bean:write>