It will be in a sec, i sometimes forget to commit things.
Example.
Html _html = new Html();
Body _body = new Body();
for(int x = 0 ; x < 10; x++)
{
_body.addElement(new StringElement(Integer.toString(x)));
}
_html.addElement("body",_body);
Enumeration _enum = _body.keys();
while(_enum.hasMoreElements())
{
_body.getElement((String)_enum.nextElement()).output(System.out);
}
-stephan
Zeljko Trogrlic wrote:
> Hello,
>
> This can be found in CVS?
>
> Thanks!
>
> >Right, but now you have an ordered enumerated list of elements so when
> >iterating
> >through nextElement() you would call getElement((String)nextElement()) there
> >is no
> >need to create a seperate ordered element list, just use the enumeration of
> >hashcodes.
>
> Zeljko Trogrlic
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]