Redirect from docroot to an external url in glassfish

Posted by tim_wonil on Stack Overflow See other posts from Stack Overflow or by tim_wonil
Published on 2010-05-11T04:35:03Z Indexed on 2010/05/11 4:44 UTC
Read the original article Hit count: 155

Filed under:
|

I've googled around and only found solution where they suggest putting an apache httpd in front of glassfish. Sure, that works.

But what if I do not wish to/cannot put any thing in front of glassfish?

Without using the index.jsp in the docroot of the domain to have something like:

<%
    String redirectURL = "http://stackoverflow.com/";
    response.sendRedirect(redirectURL);
%>

Can I make browser to be redirected when I point it to: http://my.glassfish.domain/ ?

© Stack Overflow or respective owner

Related posts about java

Related posts about glassfish