diffrence between dispatch action and lookupdispatch action

write simple web appliction (insert records in database)

Answer Posted / k.v.s.ravindrareddy

In the DispatchAction there are two jsp's with different
actions so we need to write two action classes and both
action classes should do different job for any class.
(insertStudent or updateStudent) instead of writing two
classes write one Action class with different methods and it
contains the diffenet logic. and in struts-config.xml file
parameter attribute should be parameter.....

In the LookupDispatchAction also like DispatchAction
here also instead of writing two Action class write two
methods in one class... and write getKeyMethodMap()
object.... This LookupDispatchAction is I18N and
DispatchAction....

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In struts.xml, what does the attribute "method" stands for in the "action" tag?

517


What is action support class in struts2?

558


Which components are available using actioncontext map?

713


what is ACID test for fresh engineers??what is the pattern??

2356


Why use struts framework in java?

538






How we can controlled duplicate form submission in struts?

509


Explain the complete struts validator framework.

573


What are pull and push mvc architecture and which architecture does struts2 follow?

499


How an actionform bean is created?

557


What are action errors?

558


What are the benefits of Interceptors in Struts2?

640


How is the action mapping specified?

536


How can we work with error tags?

542


What are the struts2 configuration properties that control file uploading process?

598


How can duplicate form submission be handled in struts 2?

526