• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Anchor in Jsp:forward

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<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
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic