It sounds like you're thinking more of a Swing type application then a web based 
application.  You would have to use some javascript to get the arrow keys working the 
way you want.  More common would be "VCR controls" at the top, with next, previous and 
skip to front/end on it.  There are also several very good pagination tag libraries 
out there to do what you're looking for.
In essence, you would put the collection in session scope, along with the index of the 
current record and/or the current record.  A NextAction to get the next action and set 
it up for display, a PreviusActio to do  the oppsite.
The only issue left is what happens when you have several thousand records to look 
at... you don't necessarily want to put those into the session.  There are several 
solutions to that, depending on whethere you're using Hibernate, iBatis or just plain 
ol jdbc.

> -----Original Message-----
> From: Research labs [mailto:[EMAIL PROTECTED]
> Sent: Sunday, July 25, 2004 9:16 PM
> To: [EMAIL PROTECTED]
> Subject: processing multiple records in a batch...JSP...db
> 
> 
> Please, is there anything built into Struts for
> processing multiple records in a batch?
> 
> Detail:
> If a database query brings back more than one record
> and the records are stored in a collection, I want the
> user to be able to bring one record at a time into the
> JSP screen by pressing the up or down arrow key. 
> Please note that the JSP screen cannnot display more
> than one record at a time.
> 
> Once a record is in view they should be able to update
> it.  After updating all records, save them to the db
> by clicking a button.
> 
> 
> Thank you.
> 
> Ola
> 
> 
> 
> 
>       
>       
>               
> ___________________________________________________________ALL
> -NEW Yahoo! Messenger - all new features - even more fun!  
http://www.allnewmessenger.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to