This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi!, Just try this... resonse.sendRedirect("test.html"); Considerations: 1. response here is your response object of HttpServlet 2. if the web server you are using to display html requires a particular path them you'll have to provide that in addition to the file name. 3. The servlet's running port if not changed is by default 8080. Check at what port your web server is serving html. you'll have to provide that in the path too. Finally... Suppose the site is http://www.vikinsa.com Suppose the servlet is "BaseServlet" So the current running path will be http://www.vikinsa.com:8080/BaseServlet For HTMl it would be http://www.vikinsa.com/test.html If html lies in a folder ir would be http://www.vikinsa.com/HTMLS/test.html
Originally posted by Indira Shukla: I want to display an HTML page from servlet depending upon request parameters received from another HTML page.What should I do?