To send:
cocoon.sendPage("mypipeline", {} );
I think the function expects a biz data (bean)
to be delivered (thus two parameters, not one), so just give
{}.
To redirect:
cocoon.redirectTo("mypipeline");
Kind Regards,
Jan
----- Original Message -----
Sent: Wednesday, April 21, 2004 2:31
AM
Subject: redirect problem with flowscript
: No pipeline matched request: safe_user_area
Hi, i have a flowscript funtion which does the
following:
var/color> user = null/color>; importClass(Packages.test.User); var/color>
newUser = new/color> User(); var/color> msg = ""/color>;
function/color>
login() {
while/color> (user == null/color>) {
cocoon.sendPageAndWait("login.jx"/color>,
{"msg"/color>:msg}); try/color>
{ user =
newUser.getUser(cocoon.request.get("username"/color>),
cocoon.request.get("password"/color>) ); break/color>; }catch/color>(e){ msg
= "The username password combination you
entered does not exist. Please
retry."/color>; } }
cocoon.sendPage("safe_user_area"/color>); }
So,
when a user has been accepted at login redirect them to safe_user_area. I have
tried cocoon.redirect(uri) but keep getting an error which says that the
redirect function does not exist, when it does! When am I being told that a
map pattern which exists, doesn't????
<map:match
pattern="safe_user_area">/color> <map:aggregate
element="home">/color> <map:part
src=""/>/color> <map:part
src=""/>/color> <map:part
src=""/>/color> <map:part
src=""/>/color> </map:aggregate>/color>
<map:transform
type="xslt" src=""/>/color> <map:call
resource="serialize"/>
Peter/color>
|