This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application Context

 
Ankitt Gupta
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet 1 which is in package A is setting the attribute in the context



where leaguelist1 is a LinkedList which gets its data from the database.

Now i am trying to get the attribute in Servet 2 which is in package B



When i try to iterate the leaguetitle its empty

My question is why it is empty and how to get the content of leaguelist1
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was either empty to begin with or it was emptied along the way... Your invocations are okay.
 
Ankitt Gupta
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastian Janisch wrote:It was either empty to begin with or it was emptied along the way... Your invocations are okay.


Thanks seb you are right..i was clearing the LinkedList in the way through
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic