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 role of action class in struts?

1023


What are the conditions for actionform to work correctly?

1039


What steps are required to for an application migration from Struts1 to Struts2?

1029


What is switchaction?

1150


How to display validation errors on jsp page?

1020


How you will enable front-end validation based on the xml in validation.xml?

1091


What is the purpose of plug-in tag in struct-config.xml?

875


What are the loop holes of struts?

1051


What are the classes used in struts?

1092


Do I have to credit struts on my own website?

1000


What is strut action mapping?

993


Explain struts?

1048


how to connect from struts to database through hibernet and where u can modify the class

2559


What inbuilt themes are provided by struts2?

1112


Are struts thread safe?

972