• Post Reply Bookmark Topic Watch Topic
  • New Topic

sevlet attributes  RSS feed

 
bala.T murugan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use of set and get attributes
explain what happens " setattribute("dog",bala)

can u sirs explain in the way of practical happening
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bala,
Welcome to JavaRanch!

You put attributes in the session when you want to access them across multiple JSP pages. For example, when a user logs in, you can store his/her username in the session. Then you can get it on each JSP page to display.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!