4

Can a Java applet keep a socket connection on a new web page?

 2 years ago
source link: https://www.codesd.com/item/can-a-java-applet-keep-a-socket-connection-on-a-new-web-page.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Can a Java applet keep a socket connection on a new web page?

advertisements

I have an applet that I want to maintain a socket connection between multiple web pages. Currently, when a transition is made to a different page, the socket connection is closed. Is there anyway of maintaining that connection between web pages? Or, do you have to reconnect the socket after each web page transition?


Unless you can put the applet in a separate frame or load the rest of the page via AJAX, the applet is being reloaded when the page is. So no, there really isn't a way.

Related Articles

Can a Java applet use the printer?

Can a Java Applet able to print out text/html easily to standard printer driver(s) (with all common platforms Win/Mac/Linux)? Does it need to be signed?To print you will either need to use Signed Applets or if an unsigned applet tries to print, the u

Keep the socket connection in Android activity

I'm trying to create a service which controls the socket connection between client and server, to retain socket connection between activities of the client. This client's process is when user clicks on a connect button, a socket will be created and t

How many hardware details can a Java Applet discover?

I'm writing a Java applet to run differently under different hardware. For instance if I know a computer has a large amount of RAM but a weak processor, I can alter the balance of some time-memory trade-offs. Being able to discover the exact make and

Keep the socket connection between activities on Android

I'm developing an application on android 3.1 and I have an Activity A that has a subclass extending from aSyncTask, this subclass create a socket and connect to a server. All my communication is good. I received messages and send commands to a server

Alternative to the Java applet for accessing the file system from the Web

I'd like to integrate a application into a web site which allows user to manipulate files on their local machine via the web browser. Flash and Silverlight run at with low permissions and no file system access. Are there alternatives to using a java

Java applet caching forever, do not download a new version?

We have a case where clients seem to be eternally caching versions of applets. We're making use of the <param name="cache_version"> tag correctly within our <object> tag, or so we think. We went from a version string of 7.1.0.40 to 7

How to connect to a JSP web page using Android?

This is the site I would need logging in to: My goal is to incorporate some elements of a website into an app, by fetching the required data. Unfortunately, the webpage requires a login. how do i login to the webpage from the app itself so that the u

Can I copy the list of HTTP requests made by a Web page off the Firebug Net panel?

In the Firebug Net panel, you can get a list of all HTTP requests made for the current page. http://getfirebug.com/wiki/index.php/Net_Panel Is there a way copy this list as text, so that I can paste it somewhere else for my own records? I'm doing som

How to link the java applet to the socket?

I've created paint like applet, and wants to embed it in webpage.(I know its not a issue). The problem is, the client editing paint applet should get replicated(means another client should be able to see the changes) to another client, something like

Can a Java applet send information to the server?

I want to know if an applet made in java, can send data to the server and store it on a data base. I'm trying to make something that is executed on the client side and gather information from the execution (sort of a game, i need time, correct and in

How to manage the socket connection on an iPhone Web application that uses a node.js server?

I'm new to node.js but I know it has a great socket API called socket.io. My question is: I want to build an iphone app that communicates with a database on a node.js server, but I'm not sure how to do this. Do I build a standard index.html to which

Can the Java Desktop library launch a URL in a new tab or browser window?

I have a static method used to launch a browser with a given URL. When the browser is already open, this takes over the active browser window. This is a problem if the browser is in use for something else, such as data entry. Is there a way to open a

How to keep a single FRAGMENT to display multiple web pages

Hello Friends i'm using a listView on listitem click program execute the bellow code but as Listview having many listitem which will call DIFFERENT WEBPAGES has For the Different Webpages i have to create Different Fragment.xml and Framgment.java fil

Verify the connection information from the web page

There is a login page in aspx.net that asks the user to enter in their username and what authorization level they are. My question is once they do that I have to read from that and check what they entered from a sql database with all the possible use

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK