• 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 dispatch control to custom public method in Action class

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using struts 1.3.5 with tomcat 5.0.16 environment. Can anyone tell me with example how I can use method attribute in action mapping of struts-config.xml to divert control to public method other than execute().
Thanks a lot. wait for your replies.
Regards
Mandar Velankar
[ January 08, 2007: Message edited by: Mandar Velankar ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no "method" attribute in an action mapping. I just double-checked the Struts 1.3 DTD to make sure, and it's not there.

What you're probably thinking of is the parameter attribute. This is used in conjunction with a subclass of DispatchAction to dispatch control to custom methods in an Action Class. This link gives you a good explanation and some examples of how to do this.
 
Mandar Velankar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Merrill ,

I am beginner in struts , so I donot have idea , thanks for your suggestion.

I will check the link.

Thanks again.

Regards

Mandar
 
reply
    Bookmark Topic Watch Topic
  • New Topic