I am developing an architecture for the rest of my development staff to use on a new J2EE project starting next month.
I have the following situation: A JSP contains a form which allows the user to lookup a list of information. For example, if you enter an SSN the JSP will display some demographic information about the person associated with the SSN (first name, last name, etc) along with a list in an HTML table of payment history. The HTML table displays a subset of data, say 10 rows at a time. The total number of rows could be much higher. The table comes with buttons to navigate through the next and previous rows in the table. The point is the user can display the "previous" and "next" items in the table while the demographic information at the top remains displayed. The HTML table is built using a custom taglib I've developed. I also wrote a custom Action, called NavigateAction, which handles all the logic associated with clicking "previous" and "next". I've wrapped the HTML table in a form so that Struts can direct it to NavigateAction. NavigateAction gets the next 10 rows of data, puts them into the request object, and forwards to the same page we came from. Finally, the taglib builds the table from the data stored in the request. All that is working fine. All this allows my developers to reuse this HTML table logic on any JSP that has a similar appearance (static data at the top and scrollable data at the bottom). There is a problem however. After the page is redisplayed, the top part of the page contains no data. All of it has been lost because the form associated with it is out of scope (it was scoped to the request). I don't want to scope the forms to the session as they will accumulate as the user navigates through the application, plus the data in them will be stale if the user returns to a JSP they were at a while ago. Does anyone have any ideas how to solve this? __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

