> Question: Do you extract this information from the HttpSession? I was
> reading an article where they were saying that stuffing too much
> information to Sessions may adversely effect the scalability of a high
> traffic site. Is that true?

This is a very good point. Using session beans is "easiest" (except those
times when someone comes to your form, and then takes 30 minutes to fill it
out because they have to think or eat lunch in the meantime!) because it's
easy to keep track of all of their selections across pages.  But, if your
site will host many thousands of people using several forms on your site,
that can be a lot of data retained in memory, and I've not seen many
JSP/servlet engines that will write the data to disk when it needs to,
though that's part of the bean concept for JSPs as I understand it.
Fortunately :) there are a lot fewer high traffic sites than people would
like you to believe, with some 10-20 sites getting 90 percent of all
traffic.


.
> 2. If my JSPs have too much Java code in them, then they have more then
> just presentation logic.

Sometimes, but presentation logic is not always trivial. There can be quite
a lot of looping and conditional checks in a JSP page, all related just to
handling presentation correctly based on the content of the bean. I would be
suspect if there were JDBC calls and calculations in your JSP, though.  The
reason for the split is proven over time (MVC design pattern, for example).
The display often changes. How many older systems planned for browser based
interfaces?  How about when the PC revolution started and mainframes didn't
know how to front-end these devices because they were written to 3270 and
the like? How about when people start checking out your site from PDAs and
cell phones and webTV?  There's a good reason to split out the presentation
from the business logic, and those who survive more than a year generally
have learned this the harder more expensive way.

David

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to