aspose file tools*
The moose likes Ranch Office and the fly likes How to get URL for a post Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "How to get URL for a post" Watch "How to get URL for a post" New topic
Author

How to get URL for a post

Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1509
    
    5

Hi All,

Is there any (easy)way to get URL for a post? Say, if I need to mention link to a particular post from a thread, how should one obtain it?

Currently, I follow the crud way: open page source, find out the post id, and the link would be <thread_url> + "#" + <post_id>.

I would appreciate if anyone's aware of any simpler way for this.

Many Thanks.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

At the top of your post, it says something like "posted Today 17:20:26" in magenta. Immediately to the left of those words is a tiny document icon; it's a link to your post. Right-click it, and copy the link address.


[Jess in Action][AskingGoodQuestions]
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1509
    
    5

Ernest Friedman-Hill wrote:At the top of your post, it says something like "posted Today 17:20:26" in magenta. Immediately to the left of those words is a tiny document icon; it's a link to your post. Right-click it, and copy the link address.

Over a thousand posts and I never knew this...

Thanks a lot Ernest!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get URL for a post