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

How struts2 supports internationalization?

1110


How to upload struts file?

1008


What is struts framework in java?

958


In struts, how can we access java beans and their properties?

1020


What are the benefits of the struts system?

1166


What's the purpose of execute method of action class?

942


How you will display validation fail errors on jsp page?

930


How does struts work?

956


How is declarative handling of exceptions done in struts ?

914


What is the purpose of dispatcher result type?

953


Is struts efficient?

913


What are the advantages of spring mvc over struts mvc?

918


Can we use struts and spring together?

993


What is struts?

976


How properties of a form are validated in Struts?

1021