0% found this document useful (0 votes)
61 views2 pages

Java Web Principal

This document contains the code for a JSP page with a navigation bar. The navigation bar includes links to pages for Products, Employees, Customers, and New Sale. It also includes a dropdown for the logged in user's name, email, and a logout link. Below the navigation bar is an iframe to display the content of the selected page.

Uploaded by

Carlos aranda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views2 pages

Java Web Principal

This document contains the code for a JSP page with a navigation bar. The navigation bar includes links to pages for Products, Employees, Customers, and New Sale. It also includes a dropdown for the logged in user's name, email, and a logout link. Below the navigation bar is an iframe to display the content of the selected page.

Uploaded by

Carlos aranda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">
<title>JSP Page</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-info">
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a style="margin-left: 10px; border: none" class="btn btn-
outline-light" href="#">Home</a>
</li>
<li class="nav-item">
<a style="margin-left: 10px; border: none" class="btn btn-
outline-light" href="Controlador?menu=Producto&accion=Listar"
target="myFrame">Producto</a>
</li>
<li class="nav-item">
<a style="margin-left: 10px; border: none" class="btn btn-
outline-light" href="Controlador?menu=Empleado&accion=Listar"
target="myFrame">Empleado</a>
</li>
<li class="nav-item">
<a style="margin-left: 10px; border: none" class="btn btn-
outline-light" href="Controlador?menu=Cliente&accion=Listar"
target="myFrame">Clientes</a>
</li>
<li class="nav-item">
<a style="margin-left: 10px; border: none" class="btn btn-
outline-light" href="Controlador?menu=NuevaVenta&accion=default"
target="myFrame">Nueva Venta</a>
</li>

</ul>
</div>
<div class="dropdown">
<button style="border: none" class="btn btn-outline-light dropdown-
toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-
haspopup="true" aria-expanded="false">
${usuario.getNom()}
</button>
<div class="dropdown-menu text-center">

<a class="dropdown-item" href="#">


<img src="img/user.png" alt="60" width="60"/>
</a>
<a class="dropdown-item" href="#">${usuario.getUser()}</a>
<a class="dropdown-item" href="#">[email protected]</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="Validar?accion=Salir">Salir</a>
</div>
</div>
</nav>
<div class="embed-responsives m-4" style="height: 530px;">
<iframe class="embed-responsive-item" name="myFrame" style="height:
100%; width: 100%; border:navy"></iframe>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
</body>
</html>

You might also like