Thanks Bruno Indeed , the multiPart type isn't the same , This doesn't work. well as anybody else would do in this case , I changed the idea :) Anyhow thanks for he help T. Bruno Dumon wrote:
> On Thu, 2004-08-19 at 11:54, oceatoon wrote: >> Hello >> >> I am trying to declare a Java Pacakge in the binding javascript/onload >> tag but I can't seem to get this to work??? >> is it possible to import Java Packages like in flow in the binding >> javascript / onload tag ? >> >> <fb:javascript id="path" path="@path" direction="load"> >> <fb:load-form> >> var path = jxpathContext.getValue("@path"); >> var uploadFile = new java.io.File(path); >> var uploadFilePart = >> Packages.org.apache.commons.httpclient.methods.multipart.FilePart(path,uploadFile); > > you miss a 'new' keyword here. > >> widget.setValue(uploadFilePart); > > but I don't think this will work, as the value for the upload widget > should be a org.apache.cocoon.servlet.multipart.Part > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]