Answer Posted / manjunath more
public class MyAction extends Action{
public MyAction(){
}
public ActionForward execute(ActionMapping
mapping,ActionForm form,Request,Resopnse){
//some code
}
}
This will work...
It means you can write constructor in Action classes.
If you have any queries drop me a mail on
manjunathmore@gmail.com
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the role of action class in struts?
What are the conditions for actionform to work correctly?
What steps are required to for an application migration from Struts1 to Struts2?
What is switchaction?
How to display validation errors on jsp page?
How you will enable front-end validation based on the xml in validation.xml?
What is the purpose of plug-in tag in struct-config.xml?
What are the loop holes of struts?
What are the classes used in struts?
Do I have to credit struts on my own website?
What is strut action mapping?
Explain struts?
how to connect from struts to database through hibernet and where u can modify the class
What inbuilt themes are provided by struts2?
Are struts thread safe?