Thread: PageName

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    Amersfoort, The Netherlands
    Posts
    10
    Rep Power
    0

    PageName


    Can anyonme tell me how to read out the current page name? Is there a environment or system variable to do this?

    Erwin
  2. #2
  3. No Profile Picture
    Clueless llama
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2001
    Location
    Lincoln, NE. USA
    Posts
    2,353
    Rep Power
    117
    I *think* you are talking about the jsp or servlet name. In that case, you can get all the info of the currently requested page using the HttpServletRequest object, including the server name, protocol, name of servlet including path, query string, etc. The particular method I think you are talking about is getServletPath().

    http://java.sun.com/products/servlet...etRequest.html
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    Amersfoort, The Netherlands
    Posts
    10
    Rep Power
    0
    Thanks, that's what I needed... You saved me time searching.

    Erwin

IMN logo majestic logo threadwatch logo seochat tools logo