Results 1 to 2 of 2
  1. #1
    Coringa is offline Member
    Join Date
    Aug 2014
    Posts
    2
    Rep Power
    0

    Default HttpServletRequest: which the parameters?

    I'm new in Java and I'm wanting get active url of browsers and have seen this function that promise do that, but I not know what to put on parameter these function when use. Then, how I use these function in practice? Can someone help me? thanks in advance!

    Java Code:
    public static String getFullURL(HttpServletRequest request) {
    
        StringBuffer requestURL = request.getRequestURL();
        String queryString = request.getQueryString();
    
        if (queryString == null) {
            return requestURL.toString();
        } else {
            return requestURL.append('?').append(queryString).toString();
        }
    }

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default Re: HttpServletRequest: which the parameters?

    @OP: I removed your duplicate thread.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 10
    Last Post: 01-24-2012, 11:02 PM
  2. HttpServletRequest cannot be resolved-- Help me
    By hphuoc in forum Java Servlet
    Replies: 1
    Last Post: 04-26-2011, 10:23 AM
  3. Replies: 5
    Last Post: 11-21-2010, 03:08 PM
  4. HttpServletRequest request size
    By Ed in forum Java Servlet
    Replies: 2
    Last Post: 07-02-2007, 03:02 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
  •