sekhar


{ City } hyderabad
< Country > india
* Profession *
User No # 20328
Total Questions Posted # 0
Total Answers Posted # 19

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 189
Users Marked my Answers as Wrong # 55
Answers / { sekhar }

Question { 16300 }

When wil use singleton class in Struts


Answer

Sorry,

I posted the wrong answer Multiple instances of Action
Classes will create for each request. It will not create
multiple instances of Action class,

It will create only single object and uses that object

Is This Answer Correct ?    3 Yes 0 No

Question { Symphony, 25244 }

diffrence between dispatch action and lookupdispatch action

write simple web appliction (insert records in database)


Answer

LookupDispatchAction is used for I18N where as
DispatchAction is not useful for I18N

Is This Answer Correct ?    14 Yes 15 No


Question { Satyam, 12891 }

what is the purpose of load_on_startup entry in struts-
config.xml?


Answer

If we are using any of the custom tags related to struts
like etc, then it compulsory we need the tag of
in web.xml then only we will get the
output of corresponding jsp on to the browse or else we will
get the some errors like ActionMapping cannot resolve...

Is This Answer Correct ?    4 Yes 2 No

Question { 5468 }

In ActionClass we can use only one action i.e execute(), but
in DispatchAction we can use multiple actions.My question is
, we can use multiple actions in Action class
if(action.equals("add") if(action.equals("update"). Then
when to use Action and DispatchAction which is frequently
in webapplications.


Answer

If multiple actions refer to the same formbean then we
should go for DispatchAction. Yes as you said it is possible
to write in Action. But by using dispatchAction we can
simply specify the parameter name in config file.

No need to write the code in our appln

Is This Answer Correct ?    3 Yes 0 No

Prev    1    [2]