Femto Web Server V1.4-F

dfischer.femtowebserver.test
Class InputFormTestSssi

java.lang.Object
  |
  +--dfischer.femtowebserver.test.InputFormTestSssi
All Implemented Interfaces:
HttpdSssiInterface

public class InputFormTestSssi
extends java.lang.Object
implements HttpdSssiInterface

This example displays a HTML input form. After the submit button has been pressed, the input form "result-data" will be shown by using a SSSI.

 HTML Example File: /dfischer/femtowebserver/test/InputFormTestSssi.html

 <HTML>
 <HEAD>
 <TITLE>InputFormTestSssi</TITLE>
 </HEAD>
 <BODY>
 
 Please try with "Basel", "Bern", "Lausanne" or "Locarno".
 <FORM ACTION="/dfischer/femtowebserver/test/InputFormTestSssi.html" METHOD=POST>
 Town: <INPUT TYPE=TEXT NAME="town" VALUE="<!-- @@dfischer.femtowebserver.test.InputFormTestSssi() -->">
 <INPUT TYPE=SUBMIT VALUE="Get ZIP Code">
 </FORM>
 ZIP Code = <FONT COLOR=RED><!-- @dfischer.femtowebserver.test.InputFormTestSssi("queryDB") --></FONT>
 
 </BODY>
 </HTML>
 
You can download the sourcecode of all examples at: http://www.d-fischer.com/femto/FemtoProgrammingExamplesSourcecode.zip


Constructor Summary
InputFormTestSssi()
           
 
Method Summary
 java.lang.String execute(java.lang.String[] args, HttpRequest httpRequest, HttpdProperties httpdProperties)
          Executes the SSSI.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputFormTestSssi

public InputFormTestSssi()
Method Detail

execute

public java.lang.String execute(java.lang.String[] args,
                                HttpRequest httpRequest,
                                HttpdProperties httpdProperties)
                         throws java.lang.Exception
Description copied from interface: HttpdSssiInterface
Executes the SSSI.
Specified by:
execute in interface HttpdSssiInterface
Following copied from interface: dfischer.femtowebserver.httpd.HttpdSssiInterface
Parameters:
args - parameters of the SSSI call from the HTML file. If no parameter is given, the array has a length of zero (but will never be null)
httpRequest - access to the HTTP request data (browser request)
httpdProperties - read/only access to the Femto Web Server configuration

Femto Web Server V1.4-F

Copyright 2002, 2003, 2006 by Ingenieurbüro David Fischer GmbH, Switzerland. All rights reserved.