This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes No getter method for property name1 of bean pagesArrayList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No getter method for property name1 of bean pagesArrayList" Watch "No getter method for property name1 of bean pagesArrayList" New topic
Author

No getter method for property name1 of bean pagesArrayList

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jan 13, 2009
Posts: 357
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 ...


Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
Hi,

I am not understanding what you saying .
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No getter method for property name1 of bean pagesArrayList
 
Similar Threads
servlet action is not availbe
How to find method in Sturts
Exception creating bean of class
Struts Flow
Action[/demo] does not contain method named edit