• Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicated local variable  RSS feed

 
Ranch Hand
Posts: 1645
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: 1645
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.
 
author & internet detective
Sheriff
Posts: 38050
606
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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!