maheshm morem wrote:hi sir,
i want to call the html from servlet. i am serching database of user login from servlet if the user is rigth than it goes to main page so my main page is of the html so want to call it from servlet , plese tell me how to call it?
Hi Mahesh,
you must be writing the code to search Database for a user in some Servlet code. In that servlet code you need to add the two lines that Tom has mentioned. If at all you want some kind of a message back to the page (e.g., you want to display the username on the page), then instead of home.html you will need to use some JSP file and retrieve the data in the JSP file using custom tags or JSTL or a simple scriptlet.
How to do that in JSP? Ask the question in the JSP forum...