Examples of hello_reexport()


Examples of org.apache.geronimo.samples.requirebundle.bean.reexport.ExportBean.hello_reexport()

    protected void processRequest(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
        ExportBean eb = new ExportBean();
      String re = eb.hello_reexport();
          out.println("<html><body>");
            out.println("<h1>This sample presents features:require-bundle-resolution:=optional</h1>");
      out.println("<p>"+re+"</p>");
      out.println("<p>Succeed to resolve Attr \"resolution=optional\"</p>");
            out.println("</body></html>");
View Full Code Here

Examples of org.apache.geronimo.samples.requirebundle.bean.reexport.ExportBean.hello_reexport()

        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>");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.