how to write my own Action servlet by extending
pre-defined Action servlet in struts config.
Answers were Sorted based on User's Feedback
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 |
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 |
Explain about how requests from the client are sent?
How is the action mapping specified?
What does execandwait interceptor?
What is the purpose of global-forwards tag in struct-config.xml?
what is the difference between model1 and model2 architecture in struts?
What are the components of struts?
What is the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is interceptor in Struts2?
What is Request Dispatcher and What is reuest Processor??
What is lookupdispatchaction?
How does struts2 token work?
What is the purpose of @before annotation?