I have a form on my index.html page which makes a POST request to a Java Servlet. This servlet does some processing and I would like to redirect back to index.html with some variables that the servlet has produced.
In PHP, it would be as simple as:
header('Location: index.html?var1=a&var2=b');
How can I acheive the same with Java, hopefully making use of a GET request.
Thanks all
In a Java Servlet, you’ll want to write:
Oh right, I should note that you’ll want to do this in the processor method like doGet() or doPost()…