| 
 | 
I am creating an HTMLTable using IBM's Toolbox400 that
looks a bit like this...
ID Name 
-- ---------
10 ABC Corp.
20 Ace Corp.
But I want to make the name column contain hyperlinks
to the individual item, so that when the user clicks
on the company name they choose, I can execute some
action based  on their choice. What is the best way to
do this with HTMLTable?
The following is a snippet of my code which does
successfully create a table I can display on my web
app's JSP page, but I'd like to make the Name be a
link...
ResultSet rs = myPreparedStatement.executeQuery();
SQLResultSetRowData recs = new
SQLResultSetRowData(rs);
HTMLTable table = new HTMLTable();
String[] ProdHeaders = {"ID", "Name"};
table.setHeader(ProdHeaders);
table.setBorderWidth(2);
table.setCellSpacing(1);
table.setCellPadding(1);
HTMLTableConverter conv = new HTMLTableConverter();
                        
try {
  conv.setTable(table);
  htmlTable = conv.convertToTables(recs);
  request.setAttribute("searchResult", htmlTable[0]);
} 
catch (Exception e) {
  throw e;
}
Please help!!!
Thanks,
Ivan
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.