• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Anchor in Jsp:forward

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
 
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic