Subj : java.lang.String to js primitive String type To : netscape.public.mozilla.jseng From : Lapo Date : Thu May 12 2005 04:59 pm I have a simple question: let's say I have a java.lang.String object available in my Rhino JS scope, called myString. Is there a way in Rhino to have the java.lang.String objects auto-magically converted into the js native String object, without having to type something like: var str = String(myString) Maybe some Rhino-guru here can help me, if a solution exist... otherwise I will try to using java reflection. Thanks! .