Results 1 to 7 of 7

Thread: servlets: getHeader("Referer")

  1. #1
    Forum Master
    Join Date
    Aug 2004
    Posts
    413

    Default servlets: getHeader("Referer")

    if i have an html-page and want to define how user got to that page(by typing URL into address bar or from another page), i have to use request.getHeader("Referer") in a servlet, BUT how do i link this page with that servlet ? :confused:

  2. #2
    Forum Hero Alex_3112's Avatar
    Join Date
    Jul 2005
    Location
    Туц Оукыун
    Posts
    12,761

    Default Re: servlets: getHeader("Referer")

    Quote Originally Posted by posterise
    if i have an html-page and want to define how user got to that page(by typing URL into address bar or from another page), i have to use request.getHeader("Referer") in a servlet, BUT how do i link this page with that servlet ? :confused:
    What do you mean "link"? You want to map a URL into a servlet, programmatically?

  3. #3
    Forum Master
    Join Date
    Aug 2004
    Posts
    413

    Default Re: servlets: getHeader("Referer")

    Quote Originally Posted by Alex_3112
    What do you mean "link"? You want to map a URL into a servlet, programmatically?
    I mean "connect", "reference", svyazat`, like when you connect form and servlet through action="..."

    Calling the Referer can be done only in servlet as I understand, in doGet or doPost methods, but these can not be called at the time when page is loaded. So, how am I going to get to those doGet, doPost methods on page load ? without any Javascripts.

    Or, may be call to referer should be done somewhere else ? :confused: i don't understand....

  4. #4
    To the moon! Olezhik's Avatar
    Join Date
    Jun 2002
    Location
    Los Angeles, Ca
    Posts
    27,435

    Default Re: servlets: getHeader("Referer")

    Quote Originally Posted by posterise
    I mean "connect", "reference", svyazat`, like when you connect form and servlet through action="..."

    Calling the Referer can be done only in servlet as I understand, in doGet or doPost methods, but these can not be called at the time when page is loaded. So, how am I going to get to those doGet, doPost methods on page load ? without any Javascripts.

    Or, may be call to referer should be done somewhere else ? :confused: i don't understand....
    Хватит страдать, занимайся своими прямыми обязаностями, а не самодетельностью.
    Палец от станка не далеко падает.

  5. #5
    Forum Master
    Join Date
    Aug 2004
    Posts
    413

    Default Re: servlets: getHeader("Referer")

    Quote Originally Posted by Olezhik
    Хватит страдать, занимайся своими прямыми обязаностями, а не самодетельностью.
    я задала нормальный вопрос, причем тут самодеятельность и кто страдает ? если не знаете как ответить так и скажите

  6. #6
    To the moon! Olezhik's Avatar
    Join Date
    Jun 2002
    Location
    Los Angeles, Ca
    Posts
    27,435

    Default Re: servlets: getHeader("Referer")

    Quote Originally Posted by posterise
    я задала нормальный вопрос, причем тут самодеятельность и кто страдает ? если не знаете как ответить так и скажите
    Какой вопрос, такой ответ....
    Палец от станка не далеко падает.

  7. #7
    Forum Master
    Join Date
    Aug 2004
    Posts
    413

    Default Re: servlets: getHeader("Referer")

    Quote Originally Posted by Olezhik
    Какой вопрос, такой ответ....
    whatever....... :grum:
    :evillaugh

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Russian America Top. Рейтинг ресурсов Русской Америки. Terms of Service | Privacy Policy Рейтинг@Mail.ru