aspose file tools*
The moose likes Servlets and the fly likes In < a href= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "In &lt a href="*"&gt picture &lt a&gt how to forward?" Watch "In &lt a href="*"&gt picture &lt a&gt how to forward?" New topic
Author

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

qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
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 ]

Thanks...qingwu<br />When I open my eyes,I see your pretty face.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
Ok,I think I need URL.I will try.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In &lt a href="*"&gt picture &lt a&gt how to forward?