[AWS] (no subject)

Pascal Obry p.obry@wanadoo.fr
Wed, 20 Mar 2002 18:29:07 +0100


Mark,

If I understand well the problem:

1) Create the callback routine

   function Get (Request : in Status.Data) return Response.Data is
      P_List : constant Parameters.List := Status.Parameters (Request);
      C      : Integer := 0;

   begin
      --  let's play with the Session now.

2) Here P_List is the parameter set for this call, all the parameters from the
   HTML form.

3) Let's say that the HTML form parameter name is NUMBER, to get the
   corresponding value (the value typed by the user into the form).

   Number : constant String := Parameters.Get (P_List, "NUMBER");

Now it is up to you to use this value as you like. You could convert it into an
integer...

   C := Integer'Value (Number);


Does that answer your question ?

All this is in the documentation and the runme demo show how to do that. Look
at the code it is quite short.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"