Return-Path: Delivered-To: apmail-jakarta-ecs-user-archive@www.apache.org Received: (qmail 84310 invoked from network); 24 Feb 2009 07:56:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 07:56:21 -0000 Received: (qmail 46801 invoked by uid 500); 24 Feb 2009 07:56:20 -0000 Delivered-To: apmail-jakarta-ecs-user-archive@jakarta.apache.org Received: (qmail 46781 invoked by uid 500); 24 Feb 2009 07:56:20 -0000 Mailing-List: contact ecs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "ECS Users List" Reply-To: "ECS Users List" Delivered-To: mailing list ecs-user@jakarta.apache.org Received: (qmail 46770 invoked by uid 99); 24 Feb 2009 07:56:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 23:56:20 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.16.214.57] (HELO ipmail04.adl2.internode.on.net) (203.16.214.57) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 07:56:12 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvYEAKM2o0l5LVFR/2dsb2JhbACCcYdBgTbKKAeECgY X-IronPort-AV: E=Sophos;i="4.38,257,1233495000"; d="scan'208,217";a="315473411" Received: from ppp121-45-81-81.lns10.adl6.internode.on.net (HELO zachary) ([121.45.81.81]) by ipmail04.adl2.internode.on.net with SMTP; 24 Feb 2009 18:25:48 +1030 Message-ID: <0BFA782AF0144E2D92576287948A1017@zachary> From: "Zachary Mitchell, BCIS" To: "ECS Users List" References: <0955CEF0D0874337BE37FAADE8546AC6@zachary> Subject: Re: custom Table Date: Tue, 24 Feb 2009 18:25:49 +1030 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01C996AD.51531DC0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0010_01C996AD.51531DC0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable There are a few things to know with JSP's and copies of objects in JSP's, when it comes to variables of session and page scopes. A text/ebook like "special edition using Java 2 enterprise edition clarifies this, but it all goes to the fact that a jsp deploys to its = servlet engine by being compiled into a servlet class/instance, which is injected and then executed from there. This means that every client web browser run of the jsp is running from THE SAME class of your programmed jsp, though from different server threads and different browser instances though. You need to be careful that each page variable object doesn't conflict with other objects by use of page objects. You will want each to have a local copy of your resultset Object, in each jsp page context, to be a unique object context, and each have = all of=20 them concurrently in your jsp, rather than be using dirty references = back to your=20 original copy. It should (your resultset object), optmistically, be unbound from your = resultSet Object produced by bean/corba/rmi/ejb/whatever object source. In your example, in a situation where each jsp page may alter it's unique resultset object later on, -you may use a managed class/bean/enterprise javaban=20 to correspond to your entire table, to have setResultSet/getResultSet = methods. =20 These methods may have somethig like a linkedlist that holds resultset = objects (or a complexresultset object of yours, to include an id for = each node. This way, you have one managemenet class, and are blind to key objects, and have a manager (Accessible) class. >From hear, each page may the obtain it's own particular pageContext copy of your resultselt object. //***********************************************************************= ******************* Or, you may use a LinkedList object in an application scope, which of = its own, is outside of every page's context. The page that get's a LinkedList from there, the page deals=20 appropriately with it's resultset, and may use the java.util.LinkedList method to update the collection appropriately. the page context. See how ya go, but doen't overlook the reading I suggested, even though your stuck, and it's old! :) ------=_NextPart_000_0010_01C996AD.51531DC0--