how to write my own Action servlet by extending
pre-defined Action servlet in struts config.

Answer Posted / chandra

to write you r own action servlet u need to extend the
ReqestProcessor and override the methods u want...
and in struts-config.xml specify the controller
<controller
processorClass="org.apache.struts.action.RequestProcessor"
/>;

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is controller in struts2?

684


What is the purpose of constant tag in struts.xml?

701


What are the struts2 configuration properties that control file uploading process?

812


What is the purpose of '@customvalidator'?

775


What are the pros of struts 2?

727


What is the different actions available in struts?

725


What is action chaining ?

817


What are the struts2 error message keys that can come during file uploading process?

788


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

731


Why we use struts in java?

686


What is the difference between struts and spring?

681


How many struts config file can be created in struts?

650


What is struts 2 framework in java?

750


What is actioninvocation in struts2?

770


What is apache struts framework?

707