response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
out.println("<html><body>");
DecimalFormat mydf = new DecimalFormat("####.#");
CalculatorBean cb = new CalculatorBean();
ExportBean eb = new ExportBean();
String re = eb.hello_reexport();
out.println("<h1>This sample presents features:require-bundle</h1>");
out.println("<p>"+re+"</p>");
out.println("<li>Bean_B [\"CalculatorBean\"] says, result of ADD operation [\"10.0 + 8.0 = ?\"] is: " + mydf.format(cb.add(10.0, 8.0))+"</li>");
out.println("<li>Bean_B [\"CalculatorBean\"] says, result of SUB operation [\"10.0 - 8.0 = ?\"] is: " + mydf.format(cb.sub(10.0, 8.0))+"</li>");
out.println("</body></html>");
} catch ( Exception e ) {
e.printStackTrace();
throw new ServletException(e);
} finally {