Hi Bosun,
Thanks for the reply. But i guess here encoding is the problem. I mean liferay is already doing encoding and converting # sign into %23. While i don't need it.
Even then i tried to encode my URL after your reply with
java URL encoder but it does not solve my problem rather it generates now www.myurl.com%2523link which was www.myurl.com%23link before my encoding. What i need is simply www.myurl.com#link .
I am sorry if misunderstood your answer.
Regards.