Eu criei um layout em html, criei tambem 3 metodos (menu a esquerda, o topo onde fica o logo com alguns botões, e o radapé), quero saber como posso chamar meu metodo (que esta em .java) dentro da meu layout html???[color=red][/color][size=18][/size]
segue um exemplo do metodo:
public class CriarLayouts {
String path = "Imagens/";
public String cabecalho() {
String table = "<table width='99%' border='0' align='center' cellpadding='0' cellspacing='0'>";
table += "<tr>";
table += "<td width='1%' height='19' ><img src='"+path+"BarraCimaLogoPontaEsq.jpg' width='18' height='19'></td>";
table += "<td width='97%' bgcolor='#667BB4'> </td>";
table += "<td width='2%'><img src='"+path+"BarraCimaLogoPontaDir.jpg' width='18' height='19'></td></tr>";
table += "</table>";
table += "<table width='98%' height='175' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>";
table += "<tr>";
table += "<td height='175'>";
table += "<table width='100%' height='218' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>";
table += "<tr>";
table += "<td width='100%'></td>";
table += "</tr>";
table += "<tr>";
table += "<td width='100%' height='166'>";
table += "<table width='100%' height='166' border='0' cellpadding='0' cellspacing='0'>";
table += "<tr>";
table += "<td width='12%' height='166'> <div align='center'><img border='0' src='"+path+"LogoCmagnani.jpg' width='82' height='88'></div></td>";
table += "<td></td>";
table += "</tr>";
table += "</table></td>";
table += "</tr>";
table += "<tr>";
table += "<td width='100%' height='52'> <table width='100%' height='52' border='0' cellpadding='0' cellspacing='0'>";
table += "<tr valign='bottom'>";
table += "<td width='45' background='"+path+"LogoPart1.jpg'> <div align='center'></div></td>";
table += "<td width='660' background='"+path+"LogoPart1-2.jpg'><a href='#'> </a>";
table += "<table width='88%' height='0' border='0' align='left'>";
table += "<tr valign='bottom'>";
table += "<td width='23' height='32'><a href='#'><img src='"+path+"BT1.jpg' alt='Texto do Botão' width='23' height='25' border='0'></a></td>";
table += "<td width='23'><a href='#'><img src='"+path+"BT2.jpg' alt='Texto do Botão' width='23' height='25' border='0'></a></td>";
table += "<td width='23'><a href='#'><img src='"+path+"BT3.jpg' alt='Texto do Botão' width='23' height='25' border='0'></a></td>";
table += "<td width='23'><a href='#'><img src='"+path+"BT4.jpg' alt='Texto do Botão' width='23' height='25' border='0'></a></td>";
table += "<td width='23'><a href='#'><img src='"+path+"BT5.jpg' alt='Texto do Botão' width='23' height='25' border='0'></a></td>";
table += "<td width='23'><a href='#'><img src='"+path+"BT6.jpg' alt='Texto do Botão' width='23' height='25' border='0'></a></td>";
table += "<td width='228'><a href='#'><img src='"+path+"BT7.jpg' alt='Texto do Botão' width='23' height='25' border='0'></a></td>";
table += "</tr>";
table += "</table>";
table += "<font color='#EFEFEF'> </font></td>";
table += "<td width='206' background='"+path+"LogoPart2.jpg' ></td>";
table += "</tr>";
table += "</table></td>";
table += "</tr>";
table += "</table>";
table += "</td>";
table += "</tr>";
return table += "</table>";
}
}