Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicated local variable  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1566
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



But I got a duplicated local variable myAccount when the index.jsp was forwarded from the servlet.
 
Himai Minh
Ranch Hand
Posts: 1566
10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To fix this problem, I change the Account reference like this :

It works.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37234
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a cow for posting the solution. So quickly too!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!