Re: RE: Setting Java variables in esql (in XSPs)

2006-10-21 Thread Paritosh Patel
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

RE: Setting Java variables in esql (in XSPs)

2006-10-20 Thread Varga, Zsombor
/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

RE: Setting Java variables in esql (in XSPs)

2006-10-19 Thread Varga, Zsombor
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

Re: Setting Java variables in esql (in XSPs)

2006-10-19 Thread Paritosh Patel
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

RE: Setting Java variables in esql (in XSPs)

2006-10-19 Thread Varga, Zsombor
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.

Re: Setting Java variables in esql (in XSPs)

2006-10-19 Thread Paritosh Patel
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();

Re: Setting Java variables in esql (in XSPs)

2006-10-19 Thread Lars Huttar
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 =