cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Velychko <velychko_pe...@mail.ru>
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, java.io.Serializable)

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: users-unsubscribe@cocoon.apache.org
dff> For additional commands, e-mail: users-help@cocoon.apache.org

-- 
Best regards,
 Peter                            mailto:velychko_peter@mail.ru


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message