Colin Watford wrote:
> Can frames cause problems when used with servlets. Given that multiple
> requests may come from different frames - Eg a search in one frame, a
> home button in another. Presumably this is something that your servlet
> would need trap.
>
On the request processing side, there is nothing that the servlet can trap on
to tell that the request came from a frame (or even from a browser, for that
matter).
On the output side, there is no standard mechanism for a servlet to direct its
response to a particular frame, although some browsers support non-standard
ways to do this. The destination is set by the presence of a "target"
attribute in your HTML code, with the default being the frame that the request
came from.
Thus, any "problems" with frames and servlets are most likely to be problems in
the HTML you wrote or generated. :-)
Note also that the various requests from the various frames have two other
interesting characteristics:
* They all belong to the same session (which is a Good Thing),
so they share user state information.
* The requests from the various frames will often be processed
simultaneously, particularly when the frameset is first loaded.
Of course, you have to deal with multithreading issues anyway to deal with
multiple users, but you need to remember to synchronize modifications to the
user variables (if needed) as well.
>
> Any other reasons to justify not using Frames ???.
>
Nope ... I use them whenever they improve the user interface. I have found
them particularly useful in HTML-based transactional applications, because you
do not have to refresh the entire window on every request. This generally
provides better response times, especially for modem-connected remote users.
>
> Colin
>
Craig McClanahan
___________________________________________________________________________
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