cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beyaRecords - The home Urban music <>
Subject Actions and map pipelines
Date Mon, 05 Jan 2004 19:02:28 GMT
i have looked through many documents now about actions and have found 
nothing helpful. Could anyone show me how to reconstruct the following 
into an action/map-xspaction document:

   // handle the previous page's values.
   String name = <xsp-request:get-parameter name="name"/>;
   String password = <xsp-request:get-parameter name="password"/>;
   int userid;

       <esql:query>SELECT userid FROM users
         WHERE name=name
         AND password=password</esql:query>
           userid = <esql:get-int column="userid"/>
           <xsp-response:send-redirect url="/home"/>

So the logic is return a recordset containing a single column and 
assign the value to a variable, but if the user does not exist then 
redirect the user to another page



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message