Hello.

I'm trying to fill in the customEdittext boxes from the 
*chekLoginData.lzx*window with username and password data coming from two 
cookies. My web 
application starts with a JSP ("first.jsp") where you must enter your login 
and password (the same login and password already in the OO database). Once 
filled in, this data is stored in two separated cookies (one for the login 
and another one for the password). After some operations on another web 
page ("second.jsp"), the user finally clicks on a link to access 
http://mysite:5080/openmeetings/. And then I would like the appearing login 
window to be filled in with the username and password data from the two 
cookies.

This is the process I follow:

   1. I access "first.jsp", where I enter the login and password.
   2. The page "cookiecreation.jsp" is called to store the login and 
   password in the aforementioned two separated cookies.
   3. The application takes me then to "second.jsp", where I do my stuff.
   4. From "second.jsp", I'm taken to http://mydomain:5080/openmeetings/
   5. And there, I would like the login and password customEdittext boxes 
   to be filled in with the data that I entered at "first.jsp".
   

Now, the modifications I've done in chekLoginData.lzx.

I have added this line:
*<dataset name="dsGetMyCookieData" type="http" src="xmlfromcookie.jsp" 
request="true"/>*

The "xmlfromcookie.jsp" is a JSP page retrieving the login and password 
information from the cookies, and building this XML structure:

<info>
    <data>
        <login>my_login_data</login>
        <pwd>my_password_data</pwd>
    </data>
</info>

(I'm using the example from the Developer's guide at 
http://www.openlaszlo.org/lps4.9/docs/developers/cookies.html.)

I have also modified the "username" and "userpass" customEdittext boxes:
<customEdittext name="username" 
datapath="dsGetMyCookieData:/info/data/login/text()" y="24" x="120" 
width="330" >
<customEdittext name="userpass" 
datapath="dsGetMyCookieData:/info/data/pwd/text()" y="54" password="true" 
x="120" width="330" >

The JSP pages are located this way:
- http://mydomain:5080/openmeetings/first.jsp
- http://mydomain:5080/openmeetings/second.jsp
- http://mydomain:5080/openmeetings/cookiecreation.jsp
- http://mydomain:5080/openmeetings/xmlfromcookie.jsp

At the end, when I debug my OO application, I get the following error:

ERROR: couldn't find dataset for 'dsGetMyCookieData:/info/data/login' 
(canvas.datasets['dsGetMyCookieData']).

I'm building my OO application inside Eclipse Indigo (using Windows XP) and 
launching it clicking on the "red5.bat" file created in ROOT/dist/red5.

Any help would be appreciated.

Many thanks in advance.

Reply via email to