Hi Neeraj,

I am not sure exactly what you are asking.

  a) You want your links to affect other frames than the window the link
is clicked in or to create a new window, and you want to decide this
AFTER the user has clicked.

        In this case I have to agree with everyone else that the browser
manages where the response page goes and this is all determined at the
time the user clicks.

  b) You want your links to affect other frames than the window the link
is clicked in or to create a new window, and you can decide this before
sending the original page(in which the click happened) BEFORE the user
has clicked.

        If you want the response for a particular link to be directed to a
different frame than you
should arrange this to happen before the original page is delivered. By
either statically or dynamically
rewriting the link that is delivered to include target information.

  b) Your user has two(or more) browsers open and is accessing your site
simultaneously with both. How
you manage the state of each window separately?

        This involves separating the user state information into two groups,

        A. information that is not dependent on where or what they are doing in
your site.
        B. information which is dependent on where they are. (I call this track
information)

        part A is the stuff that would be stored in the session object.

        The information for part B should be encoded into the links URL. for
example:

        <A
HREF="http://localhost/servlet/info_page?resourceName=library+resources"></A>

        This way you know on the receiving end( inside the servlet ) what the
user is asking for.
        In this case the user wants information on library resources.


Hope this helps,
Spencer Ridder
[EMAIL PROTECTED]

Neeraj Arora wrote:
>
> Hi all of you,
>
> 1). I am facing the problem in sending response html page when more than one 
>instance is
> open on the same machine.Can we identify the window which has send the request so 
>that
> response will be directed to that particular window only.
>
> 2). How can we control the number of instances on same machine?
>
> 3). One more thing can we control the target(bottom,new window) through
>     response.sendRedirect();
>
> Neeraj
>
> Get your FREE Email at http://mailcity.lycos.com
> Get your PERSONALIZED START PAGE at http://my.lycos.com
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to