I have a jsp page to take input from user and want to store values in database with the confirmation message on the same jsp page . But I already have stored an array list in session during processing of other pages of other modules of my project . Now I want to know that how can I store more variables in session along with arraylist so that I can display confirmation message on the jsp page made for taking input . Can I simply add variables one after another ,like two string variables and an int variable after already saving arraylist in session.

You can have multiple beans as you already showed in other post and in same way in the session you can manipulate number of them. Nothing is stopping you from creating new instance of same bean class used for different purpose

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.