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.
"http://localhost:8080/Test/MyServlet" is the url being accessedwhen I run the servlet file directly.so isnt it the right url?.
I click on the submit button nothing happens as if I didn't use action listener
By the way if it isnt too much to ask then can I send you my whole project(
This looks like a job for .... legal tender! It says so right in this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|