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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / kans

am not sure but folloing is the answer for this
we can write our own action servlet by extending
requestprocessor,requestprocessor is the class where u
define ur own methods,like processpreprocess().isUserinRole
()

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More Struts Interview Questions

Difference between JSF Framework and Struts Framework.

13 Answers   Accenture, BSS, IBM, TCS,


In web.xml file instead of *.do can i write *.ibm, Specify with example

13 Answers   IBM,


How is forward action used for integration?

0 Answers  


How is declarative handling of exceptions done in struts ?

0 Answers  


Which parser is used in Struts to parse the Structconfig.xml file.

21 Answers   iFlex,


What is filter dispatcher in struts?

0 Answers  


What is Hibernate?

4 Answers  


what is the purpose of load_on_startup entry in struts- config.xml?

8 Answers   Satyam,


What is spring hibernate and struts in java?

0 Answers  


What is the difference between RequestProcessor and RequestDispatcher?

11 Answers   Ness Technologies, TCS,


we have two applications A1 & A2 both are accesing the same databse table employee at the same time how we will manage this so that both application can get the correct no of emloyee while A1 is inserting a employee at the same time while other applicatuion is getting the empployee list.

5 Answers   Accel, TCS,


What is the role of action class?

0 Answers  


Categories