Applet connection with a servlet.

hi all.
i need to send data from an applet in the client side to a servlet on the server.
i want to send this data via http so i won't have to get around firewalls and other problems that might come up if i'll use sockets.
i'm sending objects, like this: (applet side)URL url = new URL("http://localhost:8080/examples/servlet/ImportListener.Listener");
URLConnection con = url.openConnection();
con.setUseCaches(false);
OutputStream out = con.getOutputStream();
ObjectOutputStream objStream = new ObjectOutputStream(out);
objStream.writeObject(record);i have two questions:
(1) how do i get this object data in the servlet??? will it be in the doGet() method?
(2) how can i send a confirm message back to the applet?
thanks!

Hi!
I have implemented such case, and I thought it might be so helpful for all to post the solution over here, I will provide two cases in one example, first, the applet will send parameters within the posted URL, and in this case you can retrieve them in doGet method, another case is to write objects over output streams, and in this case it will be sent to the servlet using POST method, because the GET method does not have a body which must be exist to handle the streams, so, the whole request will be sent over POST method, and to get it, fill up your Java doPost():
NOTE: Any object you want to send/retrieve over a network MUST be serializable, which means, the class must implement java.io.Serializable.
The Applet - CLIENT
================
public boolean getSomeInformation(Object myObject)  {
        // Get a backend connection, see the connect() method below
        URLConnection connection = connect("/myAliasServlet?myname=nabieh&myage=28");
        BufferedReader servletResponse = null;
        ObjectOutputStream oos = null;
        try {
            oos = new ObjectOutputStream(connection.getOutputStream());
            // serialize the object
            oos.writeObject(myObject);
            oos.flush();
            // Read the response from the servlet:
            servletResponse = new BufferedReader(new InputStreamReader(connection.getInputStream()));
            String response;
            String s = "";
            while (null != ((response = servletResponse.readLine()))) {
                s += response;
            if (s != null) {
                if (s.equals("SUCCESS")) {
                    executed = true;
                } else {
                     // s = "null"!
                    JOptionPane.showMessageDialog(myForm, s, "Error", JOptionPane.ERROR_MESSAGE);
                    executed = false;
        } catch (IOException ioe) {
            ioe.printStackTrace();
        } finally {
            try {
                if (oos != null) {
                    oos.close();
                if (servletResponse != null) {
                    servletResponse.close();
            } catch (IOException ioe) {
                ioe.printStackTrace();
        return executed;
public URLConnection connect(String alias) {
        URLConnection connection = null;
        String serverContext = "http://192.168.0.2:8888/MyApp";
        // Connecting to the server:
        try {
            String s = serverContext + alias;
            URL url = new URL(s);
            connection = url.openConnection();
            connection.setDoInput(true);
            connection.setDoOutput(true);
            connection.setUseCaches(false);
            connection.setRequestProperty("Content-Type", "application/octet-stream");
        } catch (MalformedURLException murle) {
            murle.printStackTrace();
        } catch (IOException ioe) {
            ioe.printStackTrace();
        return connection;
    }The servlet, server side:
===================
Here, the servlet reads the object, do some process whatever it is, pass back a String to the client, the applet.
protected void doPost(HttpServletRequest request,
               HttpServletResponse response) throws ServletException, IOException {
                // Get both passed parameters, myname and myage
                 String name = request.getParameter("myname");
          String age = request.getParameter("myage");
               // Get the seializable object
          ObjectInputStream ois = new ObjectInputStream(request.getInputStream());
          MyObject mo = null;
          try {
               mo = (MyObject ) ois.readObject();
          } catch (IOException ioe) {
               System.out.println(ioe.getMessage());
          } catch (ClassNotFoundException cnfe) {
               System.out.println(cnfe.getMessage());
          // Do whatever you want over here...
                String found = doSomeThing(mo); // This method gonna return a string, "SUCCESS" or "null".
                PrintWriter pw = response.getWriter();
          pw.write(found);
          pw.flush();
          pw.close();
     }Good luck.

Similar Messages

  • Applet communication with struts servlet

    Hi
    I�ve seen a lot of examples where a Java applet communicates with a servlet.
    I�ve made a web application using Struts, and i would like to know if it is possible to use an applet (View) and send to Stuts some data, I mean, call an action like http://localhost:8080/ViewRoads.do.
    Is it possible? ,Where can I find some examples about?, could anyone explain how would it work?, any good book to read about?.
    Thank you.

    I'm sorry but don't you have a communication source code example between a servlet and an applet that does work ? I'm looking for one of these since Two days already.
    thanks

  • Applet connection with DB

    Hi Guys,
    I have designed an applet and have placed in the htdocs of Apache server that comes with Oracle 9iAS when I can login to the db within my Lan it works fine but when I try to login from outside LAN through a dialup modem I get following error:
    Error in Connecting to the Database java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    I know applets can only communicate with the server they are downloaded from, I have the DB on this same server where I am downloading applet from!
    I am using a router to connect the server to the internet and have opened ports 7777, 4443 and 1521.
    Any1 Any ideas??????????????
    Thanx!

    The error you are getting is a client side error, you will find no log in the listener. The applet demo was tested. The only thing I can think of is the classpath, please make sure your HTML code is pointing to the right ones. Also, you may want to make sure your browser is compatible with the version of the classes you are using, I thought browsers today support jdk 1.1.
    -Soulaiman
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by kibito:
    Since two weeks we are trying to get
    a connection working within an applet with our db.
    Plattform: Linux RedHat 6.1
    Database: oracle8i
    jdk: 1.02 (the classes102.zip)
    webserver: Apache 1.3
    browser: netscape 4.6
    We have always the no suitable driver exception!
    We worked thought different tries:
    - with the JdbcApplet.java Sample from Oracle
    - with the DriverManager.registerDriver
    (new oracle.jdbc.dnlddriver.OracleDriver()); approach
    - with the Class.forName( "oracle.jdbc.dnlddriver.OracleDriver" ); approach
    - with the driver = new oracle.jdbc.dnlddriver.OracleDriver(); approach
    - we tried every possible kind of
    getConnection method
    Questions:
    1. Is it possible to connect from an applet (jdk1.02) to an oracle8i database running under redhat 6.1?
    2. The No suitable driver means for me,
    that the listener has not found a
    driver handling the TCP request for our
    connection. Is this correct?
    3. The listener works like the inetd.
    It gets a connection forks the
    requested process to handle the connection.
    Is this correct?
    4. Even if I check the listeners logs and
    traces, there is never a request arriving
    from my applet. What am I missing?
    Help would be great!
    <HR></BLOCKQUOTE>
    null

  • Java applet - Connection with OS

    I wrote some Java code to get the date and time via a NTP server.
    I get the correct date/time from the server and store it in a variable.
    Now I woudl like to pass the value to the 'date' command on the OS (Suse Linux), using JNI.
    Two problems:
    - How do I get the program to have root access to the 'date' command to change the date and time ?
    - How do I execute the 'date' command from within Java ?
    Thanks,
    J.M.

    Try asking this question on one of the Java developer forums. Specificlly the native method forum:
    http://forum.java.sun.com/forum.jsp?forum=52

  • How can I use URLConnection to use applet communication with servlet?

    I want to send a String to a servlet in applet.I now use URLConnection to communicat between applet and servlet.
    ====================the applet code below=========================
    import java.io.*;
    import java.applet.Applet;
    import java.awt.*;
    import java.net.*;
    //I have tested that in applet get data from servlet is OK!
    //Still I will change to test in applet post data to a servlet.
    public class TestDataStreamApplet extends Applet
    String response;
    String baseurl;
    double percentUsed;
    String total;
    public void init()
    try
    java.net.URL url = new java.net.URL(getDocumentBase(),"/servlet/dataStreamEcho");
    //String currenturl=new String("http://lib.nju.edu.cn");
    java.net.URLConnection con = url.openConnection();
    //URL currentPage=getCodeBase();
    // String protocol=currentPage.getProtocol();
    // String host=currentPage.getHost();
    //int port=currentPage.getPort();
    // String urlSuffix="/servlet/dataStreamEcho";
    // URL url=new URL(protocol,host,port,urlSuffix);
    // URLConnection con=url.openConnection();
    con.setUseCaches(false);
    con.setDoOutput(true);
    con.setDoInput(true);
    ByteArrayOutputStream byteout = new ByteArrayOutputStream();
    PrintWriter out=new PrintWriter(byteout,true);
    String currenturl=new String("http://lib.nju.edu.cn");
    String var1=this.encodedValue(currenturl); //encode the data
    String data="currenturl="+var1;
    out.print(data);
    out.flush();
    con.setRequestProperty("Content-Length",String.valueOf(byteout.size()));
    con.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    byteout.writeTo(con.getOutputStream());
    BufferedReader in=new BufferedReader(new InputStreamReader(con.getInputStream()));
    String line;
    while((line=in.readLine())!=null)
         System.out.println(line);
    catch (Exception e)
    e.printStackTrace();
    private String encodedValue(String rawValue)
         return(URLEncoder.encode(rawValue));
    =========================The servlet code below=====================
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class DataStreamEcho extends HttpServlet
    {public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
          res.setContentType("text/plain");
          PrintWriter out = res.getWriter();
          Runtime rt = Runtime.getRuntime();
          out.println(rt.freeMemory());
          out.println(rt.totalMemory());
          response.setContentType("text/html; charset=GBK");     
          request.setCharacterEncoding("GBK");
          PrintWriter out = response.getWriter();
          HttpSession session=request.getSession();
          ServletContext application=this.getServletContext();
          String currenturl=(String)session.getAttribute("currenturl");
          out.print(currenturl);
    =============================================================
    I have done up,but I found the program don't run as I have thought.
    Can you help me to find where is wrong?Very thank!

    You are trying to pass the current URL to the servlet
    from the applet, right?
    Well, what I put was correct. Your servlet code is
    trying to read some information from session data.
    request.getInputStream() is not the IP address of
    anything...see
    http://java.sun.com/products/servlet/2.2/javadoc/javax
    servlet/ServletRequest.html#getInputStream()
    Please read
    http://www.j-nine.com/pubs/applet2servlet/Applet2Servle
    .htmlNo,you all don't understand I.
    I want to send an Object to the server from a applet on a client.not url only.I maybe want to send a JPEG file instead.
    All I want is how to communicate with a servlet from an applet,send message to servlet from client's applet.
    for example,Now I have a method get the desktop picture of my client .and I want to send it to a server with a servlet to done it.How can I write the applet and servlet program?
    Now my program is down,But can only do string,can't not done Object yet.Can anyone help me?
    =======================applet=============================
    public void init()
    try
    java.net.URL url = new java.net.URL(getDocumentBase(),"/servlet/dataStreamEcho");
    //String currenturl=new String("http://lib.nju.edu.cn");
    java.net.URLConnection con = url.openConnection();
    //URL currentPage=getCodeBase();
    // String protocol=currentPage.getProtocol();
    // String host=currentPage.getHost();
    //int port=currentPage.getPort();
    // String urlSuffix="/servlet/dataStreamEcho";
    // URL url=new URL(protocol,host,port,urlSuffix);
    // URLConnection con=url.openConnection();
    con.setUseCaches(false);
    con.setDoOutput(true);
    con.setDoInput(true);
    ByteArrayOutputStream byteout = new ByteArrayOutputStream();
    PrintWriter out=new PrintWriter(byteout,true);
    String currenturl=new String("http://lib.nju.edu.cn");
    String var1=this.encodedValue(currenturl); //encode the data
    String data="currenturl="+var1;
    out.print(data);
    out.flush();
    con.setRequestProperty("Content-Length",String.valueOf(byteout.size()));
    con.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    byteout.writeTo(con.getOutputStream());
    con.connect();
    BufferedReader in=new BufferedReader(new InputStreamReader(con.getInputStream()));
    String line;
    while((line=in.readLine())!=null)
         System.out.println(line);
    catch (Exception e)
    e.printStackTrace();
    =======================servlet=============================
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         response.setContentType("text/html; charset=GBK");
    //request.setCharacterEncoding("GBK");
    PrintWriter out = response.getWriter();
    HttpSession session=request.getSession();
    ServletContext application=this.getServletContext();
    //String currenturl=(String)session.getAttribute("currenturl");
    String currenturl=(String)request.getParameter("currenturl");
    out.print(currenturl);
    File fileName=new File("c:\\noname.txt");
    fileName.createNewFile();
    FileOutputStream f=new FileOutputStream(fileName); //I just write the String data get from
    //applet to a file for a test.
    byte[] b=currenturl.getBytes();
    f.write(b);
    f.close();
    }

  • Not able to run Applet after calling JSP with a Servlet

    Dear Java-Community :)
    At first I want to say, that my English isn't the best.. so I hope you'll understand my problem ;)
    I'm running a J2EE-Application, packed in a EAR-File, on my JBoss with following directory-structur:
    /jaw6c/bin
    /jaw6c/build
    /jaw6c/common
    /jaw6c/ejb
    /jaw6c/sql
    /jaw6c/src
    /jaw6c/webapp
    /jaw6c/webapp/build
    /jaw6c/webapp/build/classes
    /jaw6c/webapp/build/classes/com
    /jaw6c/webapp/build/classes/com/jbossatwork
    /jaw6c/webapp/build/classes/com/jbossatwork/ControllerServlet.class<<<<<<<<
    /jaw6c/webapp/build/distribution
    /jaw6c/webapp/build/distribution/webapp.war
    /jaw6c/webapp/build/gensrc
    /jaw6c/webapp/compile-lib
    /jaw6c/webapp/lib
    /jaw6c/webapp/src
    /jaw6c/webapp/src/com
    /jaw6c/webapp/src/com/jbossatwork
    /jaw6c/webapp/src/com/jbossatwork/ControllerServlet.java
    /jaw6c/webapp/web
    /jaw6c/webapp/web/WEB-INF
    /jaw6c/webapp/web/WEB-INF/classes
    /jaw6c/webapp/web/buyCarForm.jsp
    /jaw6c/webapp/web/carForm.jsp
    /jaw6c/webapp/web/carList.jsp
    /jaw6c/webapp/web/copy_darstellungErgebnisse.jsp
    /jaw6c/webapp/web/darstellungErgebnisse.jsp<<<<<<<<<<<<<<
    /jaw6c/webapp/web/default.css
    /jaw6c/webapp/web/diag.jar
    /jaw6c/webapp/web/diagram.class<<<<<<<<<<<<<<<<<<<<<<<<
    /jaw6c/webapp/web/error.jsp
    /jaw6c/webapp/web/index.jsp
    /jaw6c/webapp/web/selectBewertungslaeufeList.jsp
    /jaw6c/webapp/build.xml
    /jaw6c/build.xmlThe applet should be loaded in my "darstellungErgebnisse.jsp"-File.
    Now the strange situation:
    When I access "darstellungErgebnisse.jsp" DIRECTLY by entering a URL like "localhost:8080/jaw/darstellungErgebnisse.jsp" , the applet is loading perfectly !
    But when my server is forwarding me to the JSP-Site with
    RequestDispatcher dispatcher =  getServletContext().getRequestDispatcher(destinationPage);
    dispatcher.forward(request, response);
    . . . . . . . ..I'll get a ""java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file diagram
    " -Error what means (referenced on the articles I've read here), that the diagram.class Is not found !
    I have tried to put the class file in a JAR, in different locations... using the codebase and archive tag but NOTHING solved my problem.
    So my question:
    Why I'm able to access the JSP-File directly and seeing the applet but after forwarding to the JSP-File via the Servlet, I'm not able to see anything.
    Would appreciate your help
    Thank you and best regards
    Edit:
    1) I'm able to download the diag.jar and diagram.class file from different locations
    2)I recognized, that after using the servlet, my url is changing from
    localhost:8080/jaw
    to
    localhost:8080/jaw/controller
    I tried added the class file to the position, where the controller-class file is, but without sucess.
    3)Opening the class-file with a hex-editor shows me, that
    the first bytes are
    "CAFEBABE0000002E02B9070002010007"
    (http://forum.java.sun.com/thread.jspa?threadID=648990&messageID=3820701)
    Message was edited by:
    Khaled01

    Hello everybody,
    I finaly have found the solution (after 16 hours).
    Like I mentioned before, I recognized (maybe a little to late), that my path is changing when I'm using the servlet :
    localhost:8080/jaw
    to
    localhost:8080/jaw/controller
    (made by url-pattern in my web.xml).
    So when my JSP tries to acces the class file, It's looking at:
    localhost:8080/jaw/controller/applet/diagram.class
    but the file is in:
    localhost:8080/jaw/applet/diagram.class
    So the solution is, to but a codebase-tag in my applet-declaration with following delcaration "basedir="../applet"
    I hope I'll help somebody with the same problems. It took me a day to find out, that the solution was two points and a slash..... lol
    Regards to everybody

  • Urgent: how to run applet which connected to the servlet?

    hi frends:
    i have written an applet on the server side and it supposed to pass parameters to my servlet and retrieve some info from the servlet.
    i put both applet and servlet under tomcat../WEB-INF/classes. but when i run the applet from the web browser, there is no response from the servlet.
    could anyone help me to solve this problem?
    one more thing is i know that applet is able to connect to servlet, but how about java application? is it able to do so? if yes, is it also using URLconnection as applet? and how to run it?
    i will be very appreciate if anyone can help me... thanx a million.

    You can connect to the servlet from an application.There's a URL class in java.net that has an openConnection method. Then cast the return to an HttpURLConnection and use setMethod to set up as a post request.This may be the default if you call setDoOutput(true) on the URLConnection. Then you'll need to get an OutputStream and write properly formatted form POST data to it. It's also possible to encode your data on the URL, even when using the POST method, and this may be easier when doing it programmatically from an application. To send a get request you can append the name-value pair at the end of the url.

  • Applet security problems while connecting with database

    i hav problem in the japplet connecting with sql database
    it gives security access denied error while running program as my driver is jdbc:odbc:bridge driver
    so for resolving this error how can i turn off security of applet and also which security permission to be change?
    plz reply

    baftos wrote:
    Maybe I should question the need to access a local database on the client PC.
    But anyway, the normal way to obtain security clearance is to use a signed applet.
    Another possibility is to grant the applet all permissions by modifying the security policy file of each client to grant your applet 'all permissions'. Note that in this case you must have access to each and every client PC or ask them to do so before running the applet.Database access at client's machine is ridiculous. I doubt this is what OP wants.
    @OP: request you to post the original security issue and the environment details.
    Thanks,
    Mrityunjoy

  • How to connect microsoft sql with java servlets

    what are steps i should do after writing servlet program to connect with microsoft sql. what coding should i add in web.xml file.if any other steps mention it. i didn't get output or err msg in browser.if i should install jdbc drivers seperately for sql mention it.

    Hi,
    Try to find a DataBase driver for MS SQL ( type 4 which is a pure java) first and put it on the class path i.e under ../lib
    Then in your sevlet, load the DriverManager and from it get a connection to the database as per JDBC spec.
    Regards.
    Alan Mehio
    LONDON, UK

  • Servlet to applet communication: with out polling

    hi,
    i need to write an applet which captures the realtime data as it appears in the server. Is this possible with out polling ther server at constant intervals? i.e... is it possible for the server to push data to an applet (say applet first registers etc etc with the server)
    One more thing..say applet had opened a connection with server and opened a stream. Now is it possible for it to keep listening over the connection so that server puts the info over the connection when ever it has it and the client displays the info when ever it receives it.
    Any pointers would be helpful.

    [email protected] wrote:
    hi,
    i need to write an applet which captures the realtime data as it appears in the server. Is this possible with out polling ther server at constant intervals? i.e... is it possible for the server to push data to an applet (say applet first registers etc etc with the server)sure it's possible
    One more thing..say applet had opened a connection with server and opened a stream. Now is it possible for it to keep listening over the connection so that server puts the info over the connection when ever it has it and the client displays the info when ever it receives it.
    Any pointers would be helpful.i'm not sure what the best way is, but I've done it with Sockets and ObjectOutputStream

  • Exmpl of Servlet connect with ORacle

    Hi folks,
    Can anyone send me example of Java Servlet connectivity with Oracle.
    i m not able to connect servlet with oracle.
    u guys can reply me on [email protected]
    thanks
    dal hit

    No.
    The code for connecting to Oracle from a Servlet is no different from connecting to Oracle from any other Java application. So tell you what, you show us what you've tried and the error message(s) and we'll help you debug it.
    99.999% of the time it's a failure to put the driver Jar file into the classpath, the specifics of which vary from application server to application server. Which one are you using?
    u guys can reply me on [email protected]
    We can, but we won't. This is not your personal bugfixing service. Pay if you want that kind of help. If you want it for free, do it through the forums or go away.
    Probably you'll never read this response, but that's your problem not mine.

  • Please help me to write a file from applet to server with a servlet.

    In an applet the client elaborates a string and stores it in the variable of the name "line"
    I would Like to write the string "line" in the file myfile.txt on the server.
    I am in an applet trying to make the URLconnection to a servlet.
    The part of the applet which calls the servlet is the following:
    private void writeToSer(String line)
    try
    URL u = new URL("http://192.168.1.103:8180/servlet/ScriviFileServletFor1?stringa="+line);
    HttpURLConnection urlConn = (HttpURLConnection)u.openConnection();
    catch(IOException ioe)
    JOptionPane.showMessageDialog(null,"IO Exception ","attenzione",JOptionPane.ERROR_MESSAGE );
    the code of the servlet is the following:
    import java.io.*;
    import java.io.File;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ScriviFileServletFor1 extends HttpServlet {
    public void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    //read the parameters
    String string = request.getParameter("stringa");
    try {
    File file = new File("/home/icurrado/myfile.txt");
    FileWriter out = new FileWriter(file);
    out.write(string);
    out.close();
    catch (Exception e) {
    e.printStackTrace();
    When I call the servlet from the bar of the URL with :
    http://localhost:8180/servlet/ScriviFileServletFor1?stringa=prova
    It works and writes the string "prova" in the file "/home/icurrado/myfile.txt".
    When I call the servlet from the applet it doesn't work and it doesn't write the string in the file.
    What is wrong or is missing ?
    Please help me.

    You dont need to go through the URL mechanism.
    From an Applet you can directly save the file on the server at destinated location.
    You can look for "Uploader Applet" in google.

  • How to share internet connection with KDE networkmanager applet

    I mainly use wireless around my house and like to use one computer to share it's wireless to another when installing Arch, until I can get KDE and networkmanager installed so I can easily connect to the wireless. I've always been able to easily share internet connections with Ubuntu, but when I try it with Arch, with Gnome OR KDE (and their respective applets), It just doesn't work.
    Is there some library or backend I need to install to make ICS work?
    Thanks!
    Last edited by MetaMan (2011-09-10 22:12:26)

    If this helps at all, here is what I am currently trying: I open up the network settings KDE Control Module, select "Wired", select the device (eth0) and click edit, and under the "IPv4 Address" tab  selecting "Shared" from the "Method" drop-down.
    Also, to make it clearer, I am trying to share wlan0(on device 1) through eth0 to eth0 on device 2. Also, device 2 is running the Arch setup and I am telling it to connect to eth0 via DHCP after I select the remote mirror to use. I have managed to do this before when device 1 ran Ubuntu.
    I've searched Google, the forums, read the wiki pages for KDE and networkmanager, and can't seem to find a mention of internet connection sharing (pertaining to my usage case; the forums have some posts of people trying to use their computer to broadcast eth0, I'm trying to do the opposite) anywhere on them. In fact, I'll gladly write the section myself if I figure this problem out.
    Hope this extra information helps!

  • Inputstream.java.io.IOException  ,  applet connection

    I'm working on a problem with the failure of a java
    applet connection to a java servlet.
    The connection is via the internet, and over port 80.
    the java console loggin reports the following
    There was an attempt to redirect a url request,
    but the attempt was not allowed by the client. IOException caught in run
    could some one let me know what the URL re-direction is here,
    much apreciated,
    slainte

    I have often found this problem with inexperts java programmers.
    I could tell you better luck next time, but today I feel generous, so I will answer.
    There is a redirect domain problem. When you try to connect the site you receive an ICMP error message, which is the responsable of the error message you can see. That occurs because the URL connects to another URL different (surely because its original URL has changed to another) and you only have to discover the new URL, and try to connect to it.

  • Applet communication with DLL

    Hi,
    Can an applet communicate with Microsoft DLL.
    I want to save the content of an applet to database at server side.
    Problem is there is no java envirnoment at server side (it has dlls).
    What is the best way to do this. The content of the applet has to be savea at sever side not at client.
    Thanx

    deepakshettyk,
    Two options that come to mind are:
    1) have the applet use JDBC to connect to its host server's database directly. Typically this entails having type4 JDBC drivers installed and available.
    2) have the applet itself connect back to its host server's webserver (IIS?), and have a server-side agent (ASP?) record data sent back to a database. See Marty Hall's book, 'Servlets & JSP', from Prentice Hall, for code examples.
    --A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Report in P6 Optional not showing activities set by a simple filter

    it's hopefully a simple one. Created a report with an open project, looking at activites - rerpot shows all activities When i then add a filter to that report of Finish date = 1st October, I would expect to see all activities finish on that date. The

  • Check-Boxes and Popup Menus

    Hi, all! I'm a relative novice at AppleScript. What I'm looking for is a way to put a check box (like in a form) into a dialog box. I'd like to put it under some buttons, or a popup menu, which brings me to my next question: How do you add a popup me

  • Web Dynpro ALV vs. Table

    Hello, can u please describe the main differences between Web Dynpro ALV and Web Dynpro Table ? When do I choose which component for my applications ? Thanks in adavance Best regards hermannh

  • BDC return message table problem

    Dear All We are doing BDCs for Excise Invoice (J1IS) and for Posting Excise Invoice (J1IV) in Backgroung mode. Here we are facing problem in BDC return message table (messtab) which retruns the internal document number,errors or warning messages in B

  • GUYS HELP ME PLEASE

    Please help me to return back into my device the application of Clash of Clan.. i have a friend dont have an apple id before. when he bought  iphone5 he dont have apple id so i let him to use my apple id for temporary to install application. He know