All pastes #101117 Raw Edit

JSP

public text v1 · immutable
#101117 ·published 2006-07-26 18:25 UTC
rendered paste body
<%@ page import="edu.usc.csci571.axis.FedExWS4_jws.*" %>
<%@ page import="java.io.*" %>
<%@ page import="org.w3c.dom.Document" %>
<html>
<head>
<title>Orders made through Fake Fed-Ex</title>

<style>

body, table
{
    font-family: Verdana, Sans;
    font-size: 11px;
}
</style>

</head>
<body>
    <%
        try {
            FedExWS4        feObj;
            Document        document;
            FedExWS4Service ser;
            String          xslResult;

            ser = new FedExWS4ServiceLocator();
            feObj = ser.getFedExWS4();
    %>

    <center><h1>Fake Fed-Ex Orders</h1></center>

    <%
            document = feObj.getAllOrders();
            xslResult = feObj.domToString(document);
            xslResult = feObj.domToHTML(document, "fedex_all_orders.xsl");
    %>
    <%=xslResult%>
    <%
        } catch (Exception e) {
            e.printStackTrace(new PrintWriter(out));
            out.print("<p>An error has occurred accessing the web service</p>");
        }
    %>

</body>
</html>