Thanks, The code is working now.
(There really needs to be a better way to report errors in XSPs. Also,
looking at the source has helped. Is there a way to include a link to
the java source in the error report? Ideally, one should not have to
refer to the Java code).
- PDP
/esql:execute-query
/esql:connection
Zsombor
-Original Message-
From: Lars Huttar [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 9:56 PM
To: users@cocoon.apache.org
Subject: Re: Setting Java variables in esql (in XSPs)
Paritosh,
First, notice that the statement
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
Thank, I'll try this out. My passwords are currently simple, plain-text passwords. How do I make it more secure?Also, any idea how to save the Java source file generated from the XSP?- PDP
Thank, I'll try this out. My passwords are currently simple, plain-text
passwords. How do I make it more secure?
Do you mean, that you'd like to store paswords in a database table? You
can use for example MD5 securing methods, or anything else, and store
your secured password in the database.
Zsombor,I have tried the code as suggested, but I get a compilation error. Here is the code I tried:?xml version=1.0?xsp:page xmlns:xsp=http://apache.org/xsp
xmlns:esql=http://apache.org/cocoon/SQL/v2 login xsp:logic String upw = request.getParameter
(password); String dbpw = new String();
Paritosh,
First, notice that the statement
xsp:logic
dbpw = esql:get-string column=pw/
/xsp:logic
is missing a semicolon. Try putting one in, as Zsombor did:
xsp:logic
dbpw =