Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

In &lt a href="*"&gt picture &lt a&gt how to forward?

 
qingwu wang
Ranch Hand
Posts: 147
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,everybody!
I have a link in my jsp page,as following:

I want to forward this jsp page to a servlet when I click void picture.I don't know how to deal with it.I will appreciate if there are any help.
[ June 12, 2003: Message edited by: qingwu wang ]
[ June 12, 2003: Message edited by: qingwu wang ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once the page is displayed on the browser there is no way to forward the request that generated the page; it's long gone.
That is assuming that by "forward" you are talking about the RequestDispatcher type of "forward".
If you merely want to invoke the servlet upon the click, you just need to put the appropriate URL for the servlet as the href of the anchor tag. Is that what has you flumoxed?
hth,
bear
[ June 12, 2003: Message edited by: Bear Bibeault ]
 
qingwu wang
Ranch Hand
Posts: 147
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok,I think I need URL.I will try.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic