0 Replies Latest reply on Nov 12, 2003 2:13 AM by yasosandra

    JBOSS..ERROR WHEN APPLET CONNECTS TO A SERVLET..URGENT PLS H

    yasosandra

      We have successfully installed jboss and our applicatin (which uses oracle 9i,java servlets ,html and jscript) runs on jobss.we have a problem.we have used an applet which is called from javascript which passes a servlet url and returns the query results from the servlet throguh an applet .but the applet doesnt work.this is what we used in our jscript

      document.applets[0].getdata(m_url)
      where m_url is something like
      http://localhost:8080/servlet/blah blah...

      "getdata" is the applet method which calls the servlet ..and return the data back to the javascript..


      url = new URL (m_url);
      urlConn = url.openConnection();
      urlConn.setDoInput (true);
      urlConn.setUseCaches (false);
      urlConn.setRequestProperty ("Content-Type", "application/x-www-form-urlencoded");
      input = new DataInputStream (urlConn.getInputStream ());
      String str;
      outvec_value = new Vector();
      while (null != ((str = input.readLine())))
      {
      outvec_value.addElement(str);
      }
      input.close ();
      }
      catch (MalformedURLException me)
      {
      System.err.println("MalformedURLException: " + me);
      }
      catch (IOException ioe)
      {
      System.err.println("IOException: " + ioe.getMessage());
      }
      } // End of method init().
      } // End of class Happy.


      this is how i retrive data at the javascript leve
      document.applets[0].getdata(m_url);m_size=document.applets0].outvec_value.size();

      now the applet seems to load..but it doesnt retirev any thing form the servlet..except that it gives the outvec value as
      sun.plugin.com.dispathImp@78423


      can anyone pleae help on this....
      we r using IE6,jdsdk1.4.1_04 please help