Can i use constructor in Action Class?If yes how?

Answer Posted / kumar

Yes, we can have a constructor, but there is no use even if
you invoke explicitly because container itself is providing
a zero argument constructor implicitly.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is struts efficient?

677


What does it cost to replace struts?

699


What is struts in j2ee?

714


Are interceptors thread safe?

753


How many instances of servlet usually run in a struts application ?

733


What is the purpose of plug-in tag in struct-config.xml?

668


What is the use of namespace in action mapping in Struts2?

768


What types of validations are available in xml based validation in struts2?

773


Explain about how requests from the client are sent?

674


How many struts config file in a struts application?

692


What are the various struts tag libraries?

714


Explain the difference between plain-validator and field-validator in struts?

695


What is the use of reset method of ActionForm class?

758


What are best practices to follow while developing Struts2 application?

783


What is the difference between shocks and struts?

681