Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Posts
    32
    Rep Power
    0

    Default How to reterive string from URL

    Hi all
    How can i retrieve confirmtab from the following URL

    url/viewConfirmedSubscriber.action?mailingListId=20012 0&confirmtab=true

    I am trying getRequest() but not getting correct thing also i want to reterive it as a string

    Please help

    Thanks
    Kirti

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Using what?

    Is this a URL used to access your JSP, or something, or is this just some wild text that may be a url that you are feeding in as a String to some parsing program, etc., etc, etc.

    What is the context we are talking about here?

  3. #3
    Join Date
    Sep 2009
    Posts
    32
    Rep Power
    0

    Default

    Yes Sir this URL is used to access a jsp with viewConfirmedSubscriber.action action in struts 2.0 I want a part from this URL that is confirmtab how can i get it.
    function viewConfirmedSubscriber(url){
    url = url + "&confirmtab=true";
    location.href=url;
    }

    <li><input class="subcriberbutton" type="button"
    onclick="viewConfirmedSubscriber('viewConfirmedSub scriber.action?mailingListId=<c:out value="${mailingListId}" />');"
    value="Confirmed Subscribers" id="confirm" /></li>

  4. #4
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    804
    Rep Power
    6

    Default

    try to get like this

    request.getParameter("confirmtab")
    Ramya:cool:

Similar Threads

  1. combine string[] into string like perl's join function
    By tekberg in forum Advanced Java
    Replies: 9
    Last Post: 02-23-2009, 01:05 PM
  2. Replies: 5
    Last Post: 01-11-2009, 10:12 AM
  3. Replies: 0
    Last Post: 11-20-2007, 04:59 PM
  4. Replies: 1
    Last Post: 08-07-2007, 07:29 AM
  5. Replies: 1
    Last Post: 08-03-2007, 10:52 AM

Posting Permissions

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