Ulf Dittmer wrote:Start by making sure that you're using the right URL. For that I'd use a the URL constructor that takes a single parameter. That also makes it easier to test the URL outside of the applet. The "codebase " anyway an applet concept that I wouldn't use to create an URL to a servlet. If the servlet listens to "/servletlink", then the URL you're using is almost certainly incorrect.
Furthermore, if you're setting doOutput to true, then you're doing a POST, and consequently need to override doPost instead of doGet.