• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

jsp;forward problem

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic