• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 67746
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
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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok,I think I need URL.I will try.
 
reply
    Bookmark Topic Watch Topic
  • New Topic