what is ForwardAction and IncludeAction in struts?

Answer Posted / a.kranthi kumar

ForwardAction is used forward controle from one (jsp)page to another page(jsp) by follow MVC rules.

we can use this we simply configure it in struts-cinfig.xml
file. But we no need extend any class separately.

<action-mappings>
<action path="/success.do" type="org.apache.struts.actions.ForwardAction"
parameter="/success.jsp"/>
</action-mappings>

(or)
<action path="/success" forward="success.jsp">

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which library is provided by struts for form elements like check boxes, text boxes etc?

512


What is the purpose of interceptors?

532


Explain the difference between dispatchaction and lookupdispatchaction in struts?

2118


What is the difference between empty default namespace and root namespace?

560


How does interceptor work in struts2?

512






What is switchaction?

661


What is role of action class?

563


What is structs 2 validation framework?

568


What do you mean by actionservlet?

553


What is pojo in struts2?

566


What are the features of struts?

577


What is apache struts vulnerability?

548


Which design pattern is implemented by Struts2 interceptors?

554


What is the purpose of @createifnull annotation annotation?

623


Can you give an overview of how a struts application flows?

529