Results 1 to 2 of 2

Thread: Capturing URL Parameters

  1. #1
    Join Date
    Apr 2005
    Posts
    29

    Default Capturing URL Parameters

    This is more a general HTTP response question than something directly related to the Spring Framework.

    I'm trying to capture url prameters:

    http://server/formProject.htm?id=3

    But all I've been able to get is:

    http://server/formProject.htm

    Modifying the code below, does anybody know how I can construct a full url, which includes parameters?

    Thanks!

    Code:
        if (!request.isSecure()) {
          String svr = request.getServerName();
          String url = StarUtils.getStarURL(request.getRequestURI());
          String param = (String) session.getAttribute("param");
          url = param != null ? url + param : url;
          response.sendRedirect("https://" + svr + url);

  2. #2
    Join Date
    Aug 2004
    Location
    Carlisle, UK
    Posts
    184

    Default

    HttpServletRequest has a getQueryString() method - does that help?
    Chris Harris
    Carlisle, UK

Similar Threads

  1. FilterSecurityInterceptor can't match URL parameters
    By mattlangston in forum Security
    Replies: 3
    Last Post: Jul 31st, 2007, 02:16 PM
  2. Replies: 3
    Last Post: Nov 20th, 2006, 05:04 AM
  3. HttpInvoker with complex objects as parameters fails
    By iloveopensource in forum Remoting
    Replies: 5
    Last Post: Feb 5th, 2006, 12:10 PM
  4. Replies: 6
    Last Post: Jun 13th, 2005, 04:09 AM
  5. Replies: 4
    Last Post: Mar 19th, 2005, 09:20 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
  •