Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

absolute URL path problem in jsp:forward ... tag

843836Nov 29 2004 — edited Apr 6 2009
Hi,

I am trying to forward the page using absolute URL. The problem is it is appending the "/" infront of
http://xxx.com/test1.jsp i.e the url becomes /http://xxx.com/xyz/test1.jsp if use forward tag in jsp.
Why is that forward slash ("/") appending to the URL?
Please can any one know why I have this problem.
Here is the code I am using:

test.jsp:
****************
<html>
<body>
<jsp:forward page='http://xxx.com/xyz/test1.jsp' />
</body>

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2009
Added on Nov 29 2004
12 comments
1,839 views