• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

storing values in a session...

 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a 2 objects... concept object which has concepts(conceptNames) and Attribute object which has attributes and datatypes...

These 3 form my row in the table... So my row would sample as : ROW1: concept1 attribute1 datatype1

Each row represents one vocabulary object i.e attributes are added to concepts and concepts are inturn stored in vocabulary object...

How to store in a session?

I implemented sessionAware in my action class... (i am not clear whether to use application or session Aware)







session.put(???) what key, value pair should go? vocabulary?
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well since the SessionAware interface gives you a Map<String, Object> of session attributes, you need to store a String which will uniquely identify the session attribute as the key and Vocabulary object as the value. Something like this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic