• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to use 'extends' attribute of <form-bean> tag as well as <action> tag

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using Struts 1.3.10 GA build.

I Know that we have feature called 'extends' attribute in <form-bean>, <action> and also in <form> tag of validation.xml file.

I'm able to use extends attribute of <form> in validation.xml file .But now the problem is i'm bit confused how to use the same attribute in <form-bean> and <action> tag.

Here is the scenario....

I Have a form bean called LoginForm with two fields 'userName' and 'password'.

I would like to create another Form which contains the same two Fields along with another field.

I created the form-bean configuration like this in my struts-config.xml file


Now how can i use extends attribute .

I tried in this way



When i deploy everything and checked it is giving the error like
No getter method for property: "userName" of bean: "com.LoginActionForm"

How to use the extends attribute.

Here are my two formbeans



Even if we extends the 'LoginActionForm' with 'ActionForm' also.. same error is coming.
Help me in this.

 
Those are the largest trousers in the world! Especially when next to this ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic