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
Name some useful annotations introduced in Struts2?
Can a reducer dispatch an action?
What is DynaActionForm?
What are the differences between http direct and http indirect?
How is declarative handling of exceptions done in struts ?
What is the purpose of @beforeresult annotation?
What does apache struts do?
Who wrote struts?
What is the actionform?
Which library is provided by struts for form elements like check boxes, text boxes etc?
How does interceptor work in struts2?
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
What configuration changes are required to use resource files in Struts?
Where can I get help with struts?
What are struts in java?