ovidiu 2003/01/08 22:55:11
Modified: src/webapp/samples/flow/examples/prefs prefs.js
Log:
Pass the 'user' object in some of the XSP pages.
Revision Changes Path
1.5 +4 -7 xml-cocoon2/src/webapp/samples/flow/examples/prefs/prefs.js
Index: prefs.js
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/flow/examples/prefs/prefs.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- prefs.js 9 Jan 2003 05:49:17 -0000 1.4
+++ prefs.js 9 Jan 2003 06:55:11 -0000 1.5
@@ -108,8 +108,7 @@
//
// In the case of this particular function, this is the only exit
// point.
- sendPage("registrationSuccessful.html",
- {"firstName" : firstName, "lastName" : lastName});
+ sendPage("registrationSuccessful.html", {"user" : user});
}
@@ -129,7 +128,7 @@
password = cocoon.request.getParameter("password");
user = userRegistry.getUserWithLogin(login, password);
-
+
if (user != undefined)
break;
else {
@@ -148,8 +147,7 @@
// We send to the user a welcome page which contains links back to
// what (s)he can do. These links essentially point to other top
// level functions in this script.
- sendPage("welcome.html",
- {"firstName" : user.firstName, "lastName" : user.lastName});
+ sendPage("welcome.html", {"user" : user});
}
// This function is called to edit the preferences of an already
@@ -213,8 +211,7 @@
}
}
- sendPage("welcome.html",
- {"firstName" : user.firstName, "lastName" : user.lastName});
+ sendPage("welcome.html", {"user" : user});
}
function logout()
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]