public void show(String entite, Collection<Object> collection, OutputStream stream) { Map<String, Class> attributes = objectManager.getAllAttributes(entite); try { stream.write("<table>".getBytes()); showHeader(attributes, stream); for (Object objet : collection) { stream.write("<tr>".getBytes()); showAttributes(objet, attributes, stream); String parametres = generateParametersUrl(objet); String url = "<td><a href='show.html?" + parametres + "'>Voir</a> "; stream.write(url.getBytes()); url = "<a href='edit.html?" + parametres + "'>Editer</a></td>"; stream.write(url.getBytes()); stream.write("</tr>".getBytes()); } stream.write("</table>".getBytes()); } catch (IOException ex) { logger.fatal(ex); } }