Results 1 to 2 of 2
  1. #1
    valery is offline Member
    Join Date
    Jul 2007
    Posts
    32
    Rep Power
    0

    Default redirection in jsp

    I want to automatically redirect user by the value of his locale (from browser)
    something like that
    Java Code:
    <%
    language = request.getLocale().getDisplayLanguage(java.util.Locale.US);
    if(language.equals("english")) {
    %>
    
    <%-- choose english %>
    <%-- choose english %>
    can you help me?

  2. #2
    fred is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default

    hmm try with :
    Java Code:
    response.sendRedirect()
    or
    Java Code:
    RequestDispatcher#forward()

Similar Threads

  1. Output Redirection
    By Sixtease in forum New To Java
    Replies: 8
    Last Post: 12-29-2008, 10:18 AM
  2. One server to another server redirection
    By chaudhuri_abhi in forum Java Servlet
    Replies: 1
    Last Post: 02-11-2008, 07:05 PM
  3. JSP redirection script
    By ravian in forum New To Java
    Replies: 1
    Last Post: 01-07-2008, 10:33 AM
  4. stream redirection
    By Ed in forum New To Java
    Replies: 1
    Last Post: 07-02-2007, 04:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •