aspose file tools*
The moose likes Servlets and the fly likes How to create a link or url dynamically. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to create a link or url dynamically." Watch "How to create a link or url dynamically." New topic
Author

How to create a link or url dynamically.

Hasif Subair
Greenhorn

Joined: Aug 12, 2009
Posts: 24
Hi guys.

When you register into Facebook, you get a link to your profile like www.facebook.com/Userid. I am looking for something similar. Can this be done using Servlets alone.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61768
    
  67

Of course. What aspect are you having trouble with?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hasif Subair
Greenhorn

Joined: Aug 12, 2009
Posts: 24
Well I have just have no clue how its done. I am looking for some good ideas or some examples.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61768
    
  67

Sorry, you are not giving enough information to help you -- it could be as easy as String concatenation: adding the base URL to the user id value.

You are going to need to elaborate on what you want to know before someone can tell it to you.
Hasif Subair
Greenhorn

Joined: Aug 12, 2009
Posts: 24
Thanks Bear Bibeault. I resolved the issue. I didn't know String concatention in the URL is possible. Thanks to you I tried it and resolved it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a link or url dynamically.