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 to debug struts project in netbean ?

2416


What does modeldriven interceptor?

1148


How does struts2 token work?

1020


What does action do in struts?

1059


What are action classes in struts?

1008


Which interceptor is responsible for i18n support?

989


What is the different actions available in struts?

1061


What are the classes used as part of struts framework ?

994


How do struts work?

982


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

1061


Which tag is used to declare constants in struts xml?

1039


What are apache struts?

974


Explain about token feature in struts?

1028


For a single Struts application, can we have multiple struts-config.xml files?

1040


How action-mapping tag is used for request forwarding in struts configuration file?

1011