hi
i work on project in java and i use tcp and after that i almost finish the project then i have to create an applet and the applet doesnot work with tcp so what can i do i need any help?

Recommended Answers

All 5 Replies

he applet does not work with tcp

please explain. What classes are you using?
Are you trying to connect to a site that requires permission?

the server is a class that is connected to the database and the applet is a web bage that want to access the database

Are the html page and the applet loaded from the same server that the applet is trying to connect to?

no it is not the server is seprated from the applet and the html page

Normal applets can only connect to the server they were loaded from.
How are you loading the applet into the browser?

For the applet to connect to a different server requires permission.
You can give an applet permission by signing the jar file the applet's class files are in or by entries in the .java.policy file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.