Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can i use constructor in Action Class?If yes how?

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


Please Help Members By Posting Answers For Below Questions

Name some useful annotations introduced in Struts2?

927


Can a reducer dispatch an action?

917


What is DynaActionForm?

997


What are the differences between http direct and http indirect?

917


How is declarative handling of exceptions done in struts ?

884


What is the purpose of @beforeresult annotation?

969


What does apache struts do?

870


Who wrote struts?

925


What is the actionform?

980


Which library is provided by struts for form elements like check boxes, text boxes etc?

878


How does interceptor work in struts2?

900


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

1011


What configuration changes are required to use resource files in Struts?

985


Where can I get help with struts?

953


What are struts in java?

865