SHARE
TWEET

mostradorHotel.jsp

Momnteiror2m Sep 6th, 2016 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%--
  2.    Document   : mostradorHotel
  3.    Created on : 06/09/2016, 21:28:26
  4.    Author     : aluno
  5. --%>
  6.  
  7. <%@page import="java.text.DecimalFormat"%>
  8. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  9. <!DOCTYPE html>
  10. <html>
  11.     <head>
  12.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  13.         <title>Mostra Conta - Hotel</title>
  14.     </head>
  15.     <body style="text-align:center;">
  16.         <%
  17.            Double conta = (Double) session.getAttribute("conta");
  18.            DecimalFormat df = new DecimalFormat();
  19.            df.applyPattern("R$ #,##0.00");
  20.            out.println("<h1>Valor da Conta<br/><br/>"+df.format(conta)+"</h1>");
  21.         %>
  22.     </body>
  23. </html>
RAW Paste Data
Top