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

What is the use of lookupdispatchaction?

963


Explain about the validation steps which have to be carried during validation of client-side address?

927


Why is action servlet a singleton in struts?

1023


What does validation interceptor?

929


Who makes the struts?

885


What is the naming convention for a resource bundle file in struts2?

924


What does action do in struts?

933


What is the role of a handler in mvc based applications?

1164


Describe the mvc on struts?

913


How can we display validation errors on jsp page?

967


Why use struts framework in java?

1024


What configurations are stored in struts configuration file ?

940


What validate() and reset() method does ?

1009


What is the purpose of @before annotation?

951


Can a reducer dispatch an action?

906