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

    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
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: HttpServletRequest: which the parameters?

    @OP: I removed your duplicate thread.

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

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