File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 42965
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: 24199

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

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Adding URLs to a post
It's not a secret anymore!