Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%--
- Document : mostradorHotel
- Created on : 06/09/2016, 21:28:26
- Author : aluno
- --%>
- <%@page import="java.text.DecimalFormat"%>
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>Mostra Conta - Hotel</title>
- </head>
- <body style="text-align:center;">
- <%
- Double conta = (Double) session.getAttribute("conta");
- DecimalFormat df = new DecimalFormat();
- df.applyPattern("R$ #,##0.00");
- out.println("<h1>Valor da Conta<br/><br/>"+df.format(conta)+"</h1>");
- %>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement