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 |
why we are not implement business logic in struts action?
What is value stack?
What do you know about validation plugin ?
what is use of assert keyword in java..?
why do we use logic tag library in struts?
what is the purpose of action servlet and action?
How do struts work?
How is forward action used for integration?
What is interceptor? And life cycle methods of interceptor?
what is request processor class ?
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
What is the purpose of @urlvalidator annotation?