Hi!

you could use the remote address, but it's not very reliable as the requests might
come through proxies or somebody might share an IP address with someone else.
So a session might be the way to go. Maybe you should simply deliver that page with
the three links from a servlet and make sure that in that servlet the session is
established. Something along these lines:

// rough code

service(...) {
    request.getSession();

getServletContext().getRequestDispatcher("THE_PATH_WITH_THREE_LINKS").include(req,
res);
}

-hendrik
- - - - - - - - - - - - - - - - - - - - - - - - - - -
  tagtraum industries      http://www.tagtraum.com/
  jo!                 small&smart 2.2 servletengine
  Java Server & Servlets   The web-application book
  The WebApp Framework        http://www.webapp.de/


Kishore Raghavan wrote:

> Hi all,
>
> I have an interesting problem.
>
> One of my servlet is hit by 3 different requests from the same HTML page.
>
> How can my servlet come to know that the requests are coming from the SAME
> PAGE from the SAME CLIENT.
>
> Since I need to know the it is the same client and same page, things are
> getting bit complicated.
>
> I thought of using the sessionId for that purpose but it will NOT help
> because this page could be the first page to be displayed. Hence the session
> might not be created with the user requests for this URL.
>
> Any suggestions would be appreciated.
>
> Thanks
> Kishore
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to