adding more variables in session : jsp

Thread Solved

Join Date: Dec 2007
Posts: 10
Reputation: cybernaut09 is an unknown quantity at this point 
Solved Threads: 0
cybernaut09's Avatar
cybernaut09 cybernaut09 is offline Offline
Newbie Poster

adding more variables in session : jsp

 
0
  #1
Sep 23rd, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,189
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 483
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: adding more variables in session : jsp

 
0
  #2
Sep 24th, 2008
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
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC