× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.