2:17 am - Tuesday October 24, 2017

Struts 2 Redirect or Forward Action Example and Tutorial

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

BACK

Struts 2 Redirect or Forward Action Example and Tutorial

s3

Struts.xml


<struts>
<package name="test" extends="struts-default">
<action name="view">
<result name="success">/view.jsp</result>
</action>
</package>
</struts>

 

index.jsp


<html>
<head>

</head>

<body>
<h3>Candid tutorial to explain Redirect or Forward Action <br></h3><br>
<s:a href="view.action"> Click hereĀ  </s:a>to view User Details

</body>
</html>

 

View.jsp

 


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

You have successfully executed redirect action in struts 2.

</body>
</html>

 

Output Screenshots

 

Screenshot

Screenshot-1

 

Download Struts 2 Redirect or Forward Action

BACK

Filed in: Struts 2 Tutorial

Comments are closed.