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

Answer Posted / sekhar babu

Yes we can write the constructor for the Action clas rule is
Constructor should not have arguments ,
If we provide with arguments we should also proide no
argment constructor

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are action errors and error?

573


What is spring and struts in java?

507


Explain struts.devmode?

562


How to display validation errors on jsp page?

567


How can we write our own interceptor and map it for action?

571






What validate() and reset() method does ?

538


What is interceptor in Struts2?

565


State the procedure for using forward attribute of link tag’s.

535


What are the applications of struts?

529


Provide some important Struts2 constants that you have used?

559


What do you know about validation plugin ?

512


What is used to display the intermediate result in an interceptor?

499


What is ValueStack and OGNL?

565


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

586


Why was reload removed from struts (since 1.1)?

540