Hi,
I getting an error while trying to setup my first flowscript code. The error I am getting is:

org.apache.avalon.framework.CascadingRuntimeException: "Continuation" is not defined

Could anyone out there please send me a copy of their sitemap, so as I can see how to properly setup up flowscript within my sitemap. Also I am trying to create a flowscript function which instantiates a User object and passes in 2 parameters, a username and a password. If the user does not exist, the user is redirected back to the login page otherwise they are sent to the secure part of my sitemap. The login function is as follows:

var user = null;

<!-- Do I need to instantiate the object like this ?? ---->
importClass(Packages.test.User); //Note: my package test is situated as: web-inf/classes/test, User being the name of the class in the package test.
var User = new User();


function login(){
while (user == null) {
sendPageAndWait("login.jx");
user = User.getUser(cocoon.request.get("password"));

if (user != null) {
break;
}
}

cocoon.sendPage("registerd_user_area"); //Can I redirect a user to an area of my sitemap from flowscript like this??
}

I have attached my sitemap as well. Any help with this will be greatly appreciated.

Peter

Attachment: sitemap.xmap
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to