I have a html page which has one submit type button. on clicking this button, a request is sent to server side to invoke doGet(), doPost() methods. Here, How to eliminate or bypass the button click process. i.e. on completing the html page load, automatically the button click event should fire (instead of clicking on the button manually). I want to bye pass this html page and want to call the servlet directly.
Why is the web app serving a page that the user is not supposed to see or interact with in the first place? Instead of going through the response->request->response cycle, wouldn't it be easier to do whatever should happen in the first response?