wood burning stoves 2.0*
The moose likes JSP and the fly likes Anchor in Jsp:forward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Anchor in Jsp:forward" Watch "Anchor in Jsp:forward" New topic
Author

Anchor in Jsp:forward

Sophia Choi
Ranch Hand

Joined: Mar 22, 2002
Posts: 106
<jsp:forward page="../err.jsp?#CA">
<jsp aram name"title" value=<%=title%>\>
</jsp:forward>
I try to a bookmark in the forward page, but it can't work.
Can I use the anchor in the forward page ?

Thanks
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Sophia,
I think jsp:forward does a post and you want a get. Therefore, you will need to use response.sendRedirect to place something on the URL.
Regards,
Manfred.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

I think jsp:forward does a post and you want a get

A forward cannot change the method of the request. If the original request was the result of a GET, the forward cannot change that.
A forward does not specify a URL to forward to, but rather a wb applicaton resource that the current request will be forwarded to. The URL that initiated the request is not changed, so any anchor must be on the original URL.
A redirect does initiate a new request.
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Anchor in Jsp:forward
 
Similar Threads
Pop up new HTML page in JSP
Pass parameters with response.sendRedirect
jsp:forward ARRRGGHHHH!!!!!!!
jsp;forward problem
jsp:forward