What is your environment like? That is the correct jar. What I'm saying is that there is probably another Rhino jar somewhere in your class path.

One way to find out is this:

print(Packages.org.mozilla.javascript.Context.getCurrentContext().getClass().getClassLoader().getResource("org/mozilla/javascript/Scriptable.class"));

That should print out the location of the rhino jar file being used by the class loader.

HTH,

Chris

beyaNet Consultancy wrote:

Christopher,
the version of Rhino I have installed in my web-inf/lib folder is : rhino1.5r4-continuations-20030906.jar. Is this the correct version for cocoon version 2.1.4? If not, where can I get the correct .jar from?


Peter
On 20 Apr 2004, at 18:08, Christopher Oliver wrote:

Most likely you have another version of Rhino in your classpath.

beyaNet Consultancy wrote:

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("username"),cocoon.request.get("passwo rd"));


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

---------------------------------------------------------------------- --

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



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



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




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



Reply via email to