aspose file tools*
The moose likes Servlets and the fly likes can a hyperlink in a html page redirect to a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "can a hyperlink in a html page redirect to a servlet" Watch "can a hyperlink in a html page redirect to a servlet" New topic
Author

can a hyperlink in a html page redirect to a servlet

ragi singh
Ranch Hand

Joined: Mar 10, 2010
Posts: 198

I have various hyperlinks in my html page . Is there a way where i can directly go from a html page to servlet .
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

Of course. Just give the URL of the servlet.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Malatesh Karabisti
Ranch Hand

Joined: Jul 28, 2010
Posts: 153

Yes your static html pages can point to any page in the web application or any page in the internet just like for for google http://google.com
Abhishek Tyagi
Greenhorn

Joined: Jan 21, 2011
Posts: 2



Nothing is worse than ordinary
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

Although one would never include "http://localhost:8080/" as part of a hyper link!
Abhishek Tyagi
Greenhorn

Joined: Jan 21, 2011
Posts: 2

ofcource ! everyone knows what relative addresses are.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can a hyperlink in a html page redirect to a servlet