I have a webpage with a form with two text boxes and the action of the form
it's a servlet. I know how to get the HttpServletResponse response from a servlet like this:
Expand|Select|Wrap|Line Numbers
- ....
- PrintWriter out = response.getWriter();
- try
- {
- out.println("<html>");
- out.println("<head>");
- ...
- out.println("</head>");
- out.println("<body>");
- ...
- out.println("</body>");
- out.println("</html>");
- }
I tried the XMLHttpRequest but in the open("GET",url,true), it needs a url (the servlet) but I want to use the form post way i write above.
Any ideas?
Thanks in advance!