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

No getter method for property name1 of bean pagesArrayList

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi List[],

Please help me to slove my this problem and i am using Struts 1.1

i am getting following error



.......


My ActionForm

My Action Class



Jsp File


 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the future can you please use code tags. It makes it easier to read.

I edited your post above this time for you so it gets all of the pretty formatting.

To add code tags, select your code and click the Code button in the editor's toolbar.

Eric
 
Omar Al Kababji
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, you are using an attribute of type "pagesArrayList" and you are trying to get its property of type "name1" so to resolve your problem you have to either check if the class of the attribute pagesArrayList contains a getName1() method, or may be you have mistaken the attribute "pagesArrayList" and you wanted to use something else id that i don't know what would be ...
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am not understanding what you saying .
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I change in Action form and then used the hashmap .And then iterate the map values in the jsp
page.But still its not working .
Can any body tell me how to slove this problem.

My Action class



My Jsp Page

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic