Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 9th, 2012  |  syntax: None  |  size: 0.70 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Implementation of a servlet that identifies requester and sends dinamic html for browser or just information for mobile/desktop app
  2. for (Texto e : results)
  3.         {
  4.  print = "<table width='100%' border='2' cellspacing='2' cellpadding='2'>"
  5.                                     + "<tr><td colspan='2'>"
  6.                                     + results.get(0).titulo
  7.                                     + ";</td></tr><tr><td colspan='2'>"
  8.                                     + results.get(0).texto
  9.        
  10. for (Texto e : results)
  11.         {
  12.             resp.getWriter().println("Titulo:"
  13.                 + results.get(0).titulo);
  14.             resp.getWriter().println("Nome:"
  15.                 + results.get(0).nome);