You could hold a collection of values in JavaScript client-side till a user is ready to submit. I'd suggest something like building up a csv/xml
string in a hidden form element, or dynamically adding hidden elements to the form as you create the records. However, JavaScript is always a brittle way of doing this - suppose the client doesn't have it enabled?
Secondly, 3DES encription, decription is to be done at client side with client program written in JSP
I think you may be misunderstanding JSP here. JSPs are
serverside. You could include something your HTML which would do this (more JavaScript, ActiveX, an Applet etc.), but I'd have to ask you why you need encryption/decription
just in the client? Surely its one client-one user, and its only when you go to the server you need encryption?