Good evening, I am trying to display the output of a HashTable inside a HTML <table> instead of using System.out.print. The problem is, I do not know the exact way to do it. I tried several methods but I still do not understand the logic on how to do it. I tried something like this:
Sample Code
public void printHtmlData() {
Hashtable htmlData = new Hashtable();
.....
.....
Enumeration enumeration = htmlData.elements();
    while (enumeration.hasMoreElements()) {
        System.out.println(enumeration.nextElement());
    }
}
The output with System.out.print
[I|desperately, need, a, girl, haru, haru, big, bang, the, best]
[I|123, 456, a, girl, haru, haru, big, bang, the, best]
[I|desperately, need, 789, 000, haru, haru, big, bang, the, best]
[I|desperately, need, a, girl, just, a, sample, output, for, testing]
I tried to do this for the html output in another jsp file
<jsp:useBean ....."/>
Hashtable printHtml = new Hashtable();
          <TABLE width="100%" style="border-width : 2px 0px 0px 0px;border-style : solid solid solid solid;border-color : #C0C0C0 #C0C0C0 #C0C0C0 #C0C0C0;">
            <TR>
              <TD><%
                    printHtml.printHtmlData();
              %></TD>
            </TR>
          </TABLE>
I need some hints, thanks...
 
     
     
    