This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Ranch Office and the fly likes Adding URLs to a post Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Adding URLs to a post" Watch "Adding URLs to a post" New topic

Adding URLs to a post

Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
Just noticed something, I typed a url using the url button at the top. I then find that I was not able to click on the link. Found out that I didnt add the protocol at the beginning of the url (http://). Any reasons why JR doesnt add a default protocol and redirect to the site? Or is it something technical?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
Using the URL tag (which the button adds) just causes the URL to be rendered as a clickable link. While HTTP URLs are the most common form of URLs, other protocols are supported, and there's no easy way to find out what kind of URL it is. So, yes - you need to enter a complete, valid URL.
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
Thanks Ulf
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24190

If you do indeed use the "URL" button, the popup should include "http://" already as the default text.

[Jess in Action][AskingGoodQuestions]
Have you checked out Aspose?
subject: Adding URLs to a post
It's not a secret anymore!