SHARE
TWEET

mostradorAutoPecas.jsp

Momnteiror2m Sep 6th, 2016 54 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 Valor - Auto Pe├žas</title>
  14.     </head>
  15.     <body style="text-align:center;">
  16.         <%
  17.            Double total = (Double) session.getAttribute("total");
  18.            DecimalFormat df = new DecimalFormat();
  19.            df.applyPattern("R$ #,##0.00");
  20.            out.println("<h1>Valor do Produto com desconto<br/><br/>"+df.format(total)+"</h1>");
  21.         %>
  22.     </body>
  23. </html>
RAW Paste Data
Top