Skip to content

Instantly share code, notes, and snippets.

@marcric
Last active December 18, 2015 05:49
Show Gist options
  • Save marcric/5735264 to your computer and use it in GitHub Desktop.
Save marcric/5735264 to your computer and use it in GitHub Desktop.
Exemplo de JSP
<%@page import="iniciantes.Cliente"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Detalhes do Cliente</title>
</head>
<body>
<%
Cliente customer=(Cliente)request.getAttribute("cust");
%>
<table align="center" bgcolor="#FFFFCC" border="1" width="70%">
<tr>
<td colspan="2" align="center"><%="Bem vindo "+customer.getName()+" !!!!. Suas informações foram processadas." %></td>
</tr>
<tr>
<td>Nome </td>
<td><%=customer.getName()%></td>
</tr>
<tr>
<td>Endereço </td>
<td><%=customer.getAddress() %></td>
</tr>
<tr>
<td>Celular </td>
<td><%=String.valueOf(customer.getMobile()) %></td>
</tr>
<tr>
<td>Email </td>
<td><%=customer.getEmailid() %></td>
</tr>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment