0
Good evening, how do I make a dynamic menu with bootstrap? i can do with link to redirect to a page, but I am making a system and your menu is dynamic how can I implement? jsp menu.--------------------
<%@page import="model.Menu"%>
<%@page import="model.Funcionario"%>
<%
Funcionario fLogado = new Funcionario();
try {
fLogado = (Funcionario) session.getAttribute("funcionario");
out.print("Nome:"+fLogado.getNome()+" | Perfil:"+fLogado.getPerfil().getNome()+"(<a href='sair.jsp'>Sair</a>)<br/>");
for(Menu ml:fLogado.getPerfil().getMeusMenus()){
out.print("<a href='"+ml.getLink()+"'>"+ml.getTitulo()+"</a> |");}
out.print("<hr/>");
}catch(Exception e){
response.sendRedirect("login.jsp");
}
%>
What is the HTML generated by this question code? By the way, is it Java? If so, add the tag
java. Considering the generated HTML, what is the problem? The result was not as expected? What was expected?– Woss
Separate things.. Open a jsfiddle or plunker when your question is from Front End.. You cannot answer your question like this...
– Carlos Cariello