How to use DispatchAction?
Submitted by: AdministratorTo use the DispatchAction, follow these steps :
► Create a class that extends DispatchAction (instead of Action)
► In a new class, add a method for every function you need to perform on the service - The method has the same signature as the execute() method of an Action class.
► Do not override execute() method - Because DispatchAction class itself provides execute() method.
► Add an entry to struts-config.xml
Submitted by: Administrator
► Create a class that extends DispatchAction (instead of Action)
► In a new class, add a method for every function you need to perform on the service - The method has the same signature as the execute() method of an Action class.
► Do not override execute() method - Because DispatchAction class itself provides execute() method.
► Add an entry to struts-config.xml
Submitted by: Administrator
Read Online Struts Job Interview Questions And Answers
Top Struts Questions
☺ | How the exceptions are handled in struts? |
☺ | How to display validation errors on jsp page? |
☺ | How to use DispatchAction? |
☺ | What are the various Struts tag libraries? |
☺ | What is SwitchAction? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |