I have a form which submits to a Servlet from which the Servlet responds by showing the user name and thanks for the submission.
I then want the user to either be able to go back to the main class activity or be able to go back to a start jsp page. would be better to go to the main class but if this is not possible just how to put the link in the following to go back to the main page:
out.println("<html>");
out.println("<body>");
out.println("Thanks" + " " + User + " " + "for submitting your request<br>" );
out.println("Your request will be in a waiting list so please be patient");
out.println("</body></html>");
Also how can I change the text size as this shows up very small on the page.
Thanks
You can use the HTML
<a>element to show a link on the webpage.You can use CSS
font-sizeproperty to change the font size of the webpage.See also:
Note that this is not really related to Java/Servlets and that HTML technically belongs in a JSP, not a Servlet. See also our Servlets wiki page.