Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp;forward problem

 
yash bhatnagar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iam trying with jsp;forward it is not working no response i'm getting the page where i'm forwarding it i'm printing just some message but it is not getting printed .can anybody tell me somethin do we have to do some setting for jsp:forward.
 
Manas Ahlaad
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
can u just paste here,the code that you wrote so that can take a look at it to understand the problem
manas
 
yash bhatnagar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rohit Ahuja
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhay mad man,
its is </jsp:forward> and not </jsp;forward>
u are spoiling indians name by asking such silly questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic