cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Mata <>
Subject How can i acces to Class from a Class name ?
Date Mon, 05 Feb 2007 17:42:22 GMT
Hi i'm using cocoon with hibernate and flowscript/jx
just like hibernate tutorial in wiki. Everything works
fine but this.

I have a javascript function which takes an id
from the request and i need to recover the object with
hibernate API, but this code doesn't work.

function perfil_detail(){
	var id = Request.getParameter("id");
	var perfil =
hs.load(Packages.mypackage.MyClass.class, new
		{perfil : perfil}

The hibernate Session.load takes a Class parameter
first so, how can i get that Class object in

I get this error:

org.mozilla.javascript.EcmaError: missing name after .
SyntaxError -
file:/C:/cocoon-2.1.9/build/webapp/.../perfiles.js -

I searched on docs but dont find anything related to
this. Can anyone help ?

Thx in advance.

LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message