posted 22 years ago
I have multiple pages when i come from page 4 to page 5 i want the actions specified in page 5 to be executd and the control should go to page 2. the source code is as follows
<!-- page2.jsp -->
<HTML>
<TITLE>PAGE 2</TITLE>
<BODY>
THIS IS A PAGE 2
<BR>
<A HREF = "page3.jsp">PAGE 3</A>
</BODY>
</HTML>
<!-- page3.jsp -->
<HTML>
<TITLE>PAGE 3</TITLE>
<BODY>
THIS IS A PAGE 3
<BR>
<A HREF = "page4.jsp">PAGE 4</A>
</BODY>
</HTML>
<!-- page4.jsp -->
<HTML>
<TITLE>PAGE 4</TITLE>
<BODY>
THIS IS A PAGE 4
<BR>
<A HREF = "page5.jsp">PAGE 5</A>
</BODY>
</HTML>
<!-- page5.jsp -->
<HTML>
<TITLE>PAGE 5</TITLE>
<BODY>
THIS IS A PAGE 5
<BR>
<jsp:forward page="page2.jsp">
</jsp;forward>
</BODY>
</HTML>
When i execute this and clik on the URL on page4 it is taking me to page 5, it is displayingme the content of page5. it is not going to page2. if there is any problem in using jsp:forward tag please let me know how to do that. i don't want to give any URL or button in page5 to go back to page 2
thanking you,
shyam