Shasirekha Engala wrote:

>  There is a struts application. If  the application is opened in more than
>one browser  and is tested it is throwing exception.  Is there any solution
>for this.
>
(Can anyone check me on this and fix up my more grievous technical errors?)
Yes, there are many solutions available, but I dont think that any are
trivial to implement.
You probably are looking at a well-known problem common to web
applications in that it's the browser's responsibility to differentiate
itself from other instances of itself on a PC with regard to incoming
and outgoing http messages to and from the server.
For IE, new browsers started from the Start menu or Desktop are unique
instances of IE and hence (by unneccessary programmatic consequence)
yield different http sessions with the server, and hence might as well
be browsers opened on a different PC altogether (safe to open multiple
windows).  New IE browser instances started by Ctrl-N or File-New-Window
or RightClick-OpenInANewWindow actually open a new window *sharing* the
same instance of IE and (by unneccessary programmatic consequence)
*share* a http session to the server, so the server cannot without
programmatic mechanisms distinguish the two browser windows from each
other.  You get hideous session state tangles.
All new windows or tabs in Firefox share the same instance and (by
unneccessary programmatic consequence) *share* the same http sessions
with the server, so are again indistinguishable to a server that employs
no deliberate mechanism to separate them.  Mozilla shares this behaviour
but is a different code-base, so you can run Mozilla and Firefox on a
single box and they won't share session state between each other's
instances, only amongst their own.
SO
If you want to be able to survive (let alone distinguish between) having
different browser windows opened on a single box, I don't believe that
it is yet possible to avoid including a mechanism like upkeeping window
tracing tokens (of which there are various implementations favoured and
described here and there on the net) in the server app to deliberately
detect and defuse this situation.
try googleing on the topic ...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to