cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Velychko <>
Subject Re: flowscript - javascript problem
Date Thu, 08 Jul 2004 07:49:17 GMT
Hello defe,

Try to use
var header = cocoon.request.getHeader("Host");
var vhost = s.load(VHost, new java.lang.String(header));

Thursday, July 8, 2004, 10:29:28 AM, you wrote:

dff> hi,

dff> i've got a the following javascript evaluation error :

dff> "Can't find method net.sf.hibernate.impl.SessionImpl.load(java.lang.Class,string)"

dff> when writing 

dff>         var s = HibernateHelper.currentSession();
dff>         var vhost = s.load(VHost, cocoon.request.getHeader("Host"));
dff>         ...

dff> where, load() signature is : 
dff>        public void load(java.lang.Class,

dff> I know i'm a javascript dummy, but why isn't [String]
dff> cocoon.request.getHeader([name]) recognized as a java.lang.String

dff> Any help welcome

dff> regards

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

Best regards,

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

View raw message