cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varga, Zsombor" <Zsombor.Va...@albmolecular.hu>
Subject RE: Setting Java variables in esql (in XSPs)
Date Thu, 19 Oct 2006 11:17:00 GMT
The problem is, that a Java variable is visible only in its parent
<xsp:logic>
It will work :
         <xsp:logic>
             Strubg upw = request.getParameter("password");
             String dbpw = new String(""); 
	<esql:execute-query>
	<esql:query>
		SELECT pw
		FROM ....
	</esql:query>
             <esql:results>
                  <esql:row-results>
 		<xsp:logic>
                         dbpw = <esql:get-string> column='pw'/>;
 		</xsp:logic>
                     </esql:row-results>
                 </esql:results>
 	</esql:execute-query>

             if (dbpw.compareTo(upw) == 0)
             {  ... do something ... }
         </xsp:logic>
 
 
> Being very new to XSPs and new to how passwords are handled, 
> can anyone help me?
What kind of passwords?

Zsombor 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message