How to use forward action to restrict a strut application to mvc?



How to use forward action to restrict a strut application to mvc?..

Answer / Arif Husain

To enforce MVC in a Struts application using the ForwardAction, you can follow these steps:
1. Create a new action class that extends Action and overrides the execute() method.
2. In the execute() method, perform any necessary processing.
3. Use the forward() method to specify the name of the JSP page to display the result.
4. In your struts-config.xml, define an action mapping for the ForwardAction, specifying the input form and forwarded JSP page.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

why we are not implement business logic in struts action?

1 Answers  


What is value stack?

1 Answers  


What do you know about validation plugin ?

0 Answers  


what is use of assert keyword in java..?

1 Answers  


why do we use logic tag library in struts?

1 Answers   Polaris,


what is the purpose of action servlet and action?

5 Answers  


How do struts work?

1 Answers  


How is forward action used for integration?

1 Answers  


What is interceptor? And life cycle methods of interceptor?

1 Answers  


what is request processor class ?

10 Answers   Fidelity,


Hi i am murali.i need a excellent answer for the question Tell me about project and project flow ? i mean it is use full to any project,it is on STRUTS

2 Answers  


What is the purpose of @urlvalidator annotation?

1 Answers  


Categories