Friday, November 27, 2009

A HTML page using a serlet that redirects an HTML page.?

Servlets are Java code that put out HTML, so you can include a redirect normally. See the 1st source web page to see example code for a redirect.



The HttpServletResponse class (in javax.servlet.http) has a helper method for setting this up: sendRedirect(newURL) which puts the correct information into the HTML output. Us e that method on your HttpServletResponse.



A HTML page using a serlet that redirects an HTML page.?windows media player



You aren't being terribly descriptive. I would look to see if they have a header() function or likewise. Also don't forget you could use a meta refresh as well.



%26lt;meta http-equiv='refresh' content='0;url=htmlpage.html'%26gt;

No comments:

Post a Comment

 
nortin