Hello,
I ve tried to use the code as written in:
http://jakarta.apache.org/cactus/faq.html#faq7
to send file from one servlet to other servlet like
what Vincent sugested.

But I have this error while running my program:
java.lang.NoClassDefFoundError.

My program looks like this:

WebRequest theRequest=new WebRequest();
beginUpload(theRequest);

NVPair[] hdrs = new NVPair[1];

public void beginUpload(WebRequest theRequest)
{
      NVPair[] opts = { new NVPair("option",
"myoption") };
      NVPair[] file = { new NVPair("wavFile",
"D://VPTS//VPTemplateSystem//test1.wav") };
      try {
        byte[] data = Codecs.mpFormDataEncode(opts,
file, hdrs);
        InputStream i = new
ByteArrayInputStream(data);
        theRequest.setUserData(i);
        theRequest.setContentType(hdrs[0].getValue());
        i.close();
      } catch (IOException e) {
          System.out.println("Error Building
Multipart");
    }
}

Hope you guys can help me, it s urgent. Thank s a lot,


-Margaretha-


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to