File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes jsp;forward problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp;forward problem" Watch "jsp;forward problem" New topic
Author

jsp;forward problem

yash bhatnagar
Greenhorn

Joined: Dec 03, 2001
Posts: 16
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

Joined: Nov 07, 2001
Posts: 165
hi
can u just paste here,the code that you wrote so that can take a look at it to understand the problem
manas


Manas<br />Today If You are not Confused,You are just not thinking Clearly !<br />---------------------------------
yash bhatnagar
Greenhorn

Joined: Dec 03, 2001
Posts: 16
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

Joined: Oct 04, 2001
Posts: 121
Abhay mad man,
its is </jsp:forward> and not </jsp;forward>
u are spoiling indians name by asking such silly questions.


Face Off.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp;forward problem