How to map URL

Discussions

Web tier: servlets, JSP, Web frameworks: How to map URL

  1. How to map URL (3 messages)

    Hi,

    I wants to map http://localhost:7001 url to just http://localhost in case of weblogic 6.1 server .

    Menas i wants to remove port number from the URL. How i can achieve this.
     Pls let me know. Thankx in advance.

    Manoj Toshniwal.
    mtoshniwal@melstar.com

    Threaded Messages (3)

  2. How to map URL[ Go to top ]

    Manoj,

      Hello. I honestly don't believe that you can actually do it, well not without modifying each client individually to point at port 7001 by default.

    If you do manage to find a way, post your findings in here as I'm sure others (myself included) would like to see how you achieved it.

    re.
  3. How to map URL[ Go to top ]

    Try this in a servlet or jsp:

    response.sendRedirect(request.Scheme() + "://" + request.getServerName() + request.getRequestURI() + (request.getQueryString() == null ? "" : "?" + request.getQueryString()));

    Andy
    anguyen@itginc.com
  4. How to map URL[ Go to top ]

    Thanks to all of u. I was thinking of that there is any way in configuration settings by which i can eliminate the need to type port number in URL. I don't wants to include the code.

    Any way thanks for ur suggestion.

    Manoj