home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / getNumberA.xsp < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  1.7 KB  |  48 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17.  
  18. <!--+
  19.     | CVS: $Id: getNumberA.xsp,v 1.2 2004/03/06 02:26:00 antonio Exp $
  20.     | Author: Ovidiu Predescu "ovidiu@cup.hp.com"
  21.     | Date: March 23, 2002
  22.     +-->
  23.  
  24. <xsp:page language="java"
  25.           xmlns:xsp="http://apache.org/xsp"
  26.           xmlns:jpath="http://apache.org/xsp/jpath/1.0">
  27.   <page>
  28.     <title>Calculator</title>
  29.     <content>
  30.       <para>
  31.         This sample is explicitely designed to provide an easy comparison grounds 
  32.         against the same kind of application in flowScript. (check the Calculator 
  33.         sample there too)
  34.       </para>
  35.       <para>
  36.         You should note especially how they handle continuation after pressing 
  37.         the back-button. That should also explain why this approach chooses to
  38.         provide links to explicitely edit the previsouly entered values.
  39.       </para>
  40.       <form method="post">
  41.         <xsp:attribute name="action"><xsp:expr><jpath:continuation/>+".continue"</xsp:expr></xsp:attribute>
  42.         <para>Enter value of <strong>a</strong>: <input type="text" name="a"/></para>
  43.         <input type="submit" name="submit" value="Enter"/>
  44.       </form>
  45.     </content>
  46.   </page>
  47. </xsp:page>
  48.