Hi,
By instance we do mean by seperate browser window..........
--
On Mon, 30 Aug 1999 16:28:32 Cezar Totth wrote:
>Hi,
>
>In the following message "instance" means "browser window" ...
>
>On Mon, 30 Aug 1999, 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.
>
>You normally can't; the target window is controlled
>through "TARGET" atributes on HTML anchor tags, servlets at the time they
>received the request have no way to change it.
>
>By default the target window is the window from wich the request was
>submitted, no matter how many (browser window) instances are opened, so
>normally you don't need to be bothered by these target details..
>
>>
>> 2). How can we control the number of instances on same machine?
>We can't limit them. We should not be able to, it should be the user's
>choice to open how many windows they want.
>You can limit the windows in wich your application runs by TARGET-ing all
>anchors and form tags - just add TARGET="TargetName" attributes, with
>limited number of targetNames to all links (Anchors and Forms) in pages
>returned by your servlet(s).
>
>Further you can do more nasty things, by inserting in each
>response javascript that check if
>the name of current window is within those allowed and if not,
>do unpleasant actions - close current window, or call back(7) after popup
>boring warnings beginning with "Are you sure..?", or create VBA's
>(Very Big Arrays) to break the browser/computer, or to make them at least
>unusable.
>
>However I won't recommend such radical measures ;-)
>
>
>>
>> 3). One more thing can we control the target(bottom,new window) through
>> response.sendRedirect();
>No. Not by servlets/http means.
>But if your average client browsers normally
>support javascript you can send back pages containing javascript that open
>URLs in different targets than the default one, instead of
>using sendRedirect().
>
>
>>
>> Neeraj
>
>Regards,
>Cezar
>
>___________________________________________________________________________
>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
>
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