invoice3.jsp

<%@ page contentType="text/html; charset=euc-jp" %>
<!-- 
  Copyright 2001, Pajato Systems Group
  Copyright 2001, Allaire Corporation
-->


<!-- Provide an error page to handle exceptions. -->
<!-- We do not intend to write perfect code. :-) -->
<%@ page errorPage="errors.jsp" %>

<%@ taglib uri="/invoice-tags" prefix="inv" %>

<html>

  <head>
    <title>PSG 請求書ジェネレータ - バージョン 3: カスタム タグの使用</title>
  </head>

  <body>

    <!-- Use a conditional custom tag to select between the setup -->
    <!-- part and the generate part.  The default operation will  -->
    <!-- be setup.  Only when the User selects the `Generate'     -->
    <!-- submit button will setup be disabled and generate        -->
    <!-- be enabled.                                              -->

    <form name="invoiceForm" method="POST">

      <!-- Use the `if' tag set to conditionally load the invoice -->
      <!-- generation page, otherwise load the invoice setup      -->
      <!-- page.                                                  -->
      <inv:if>
        <% boolean condition =
	     "GENERATE".equals( request.getParameter( "operation" ) ); %>
        <inv:condition><%= condition %></inv:condition>
	<inv:then><%@ include file="invoice3-generate.jsp" %></inv:then>
        <inv:else><%@ include file="invoice3-setup.jsp" %></inv:else>
      </inv:if>

      <!-- The hidden field `operation' controls the behavior of  -->
      <!-- page.                                                  -->
      <input type="hidden" name="operation" value="SETUP">

    </form>

  </body>

</html>