Matt White wrote:

> Hello all,
>
> I am new to JSP and was wanting to provide frame-like behavior for my JSP
> pages.  I guess I can actually use a main.html
> and assign separate JSP pages as distinct frames, but I was wondering if
> there is a recommended way of doing this.
> I've read several FAQs and have not seen this addressed.  Any info would be
> helpful.
>

It depends a little on what "frame-like behavior" you are after.  If you want the
ability frames give you to independently update parts of the window, then frames
are the way to go (or you can look at DHTML, I suppose).  If you want your single
page to be made up of multiple logically independent components, consider using
<jsp:include> to grab the pieces of the page, and having the outer page just
control the overall format (with tables or something like that).

Two things to be aware of when using frames in JSP/servlet apps:
* All of the frames will appear (to your application) as part of
  the same session.
* Most browsers let you configure them to send multiple requests
  at once.  In the case of frames, the requests for several frame
  updates will happen at the same time.

The effect of these things is that you must ensure your session-scoped beans deal
with simultaneous access from multiple threads safely.

>
> Thank you,
>
> Matt
>

Craig McClanahan

===========================================================================
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