File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes  Hyper link in JSR 168 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark " Hyper link in JSR 168" Watch " Hyper link in JSR 168" New topic

Hyper link in JSR 168

jyothish vemula

Joined: Mar 20, 2008
Posts: 1
I am new to portals could help me?
How can i implement the hyperlink in jsr 168?
Dharmesh Chheda
Ranch Hand

Joined: May 08, 2001
Posts: 204
Hi jyotish

Your question is very vague. If you want to create a URL that points to the same portlet instance, use

renderResponse.createActionURL and renderResponse.createRenderURL

regards,<br />Dharmesh Chheda
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

You might even want to explore some of the JSR168 custom tags as well, such as this one:


Essentially, these solve the problem of linking back to the portal. External hyperlinks to external sites are business as usual. It's only links back to teh portal that get complicated.

Here's a little multimedia tutorial that discusses such issues:

Solving the Problem of Linking Back to the Portal

-Cameron McKenzie
Jonas X. Yuan
Ranch Hand

Joined: May 18, 2008
Posts: 108
It is very simple in Liferay Portal.

Here is an example:
[ June 14, 2008: Message edited by: Jonas X. Yuan ]

Books: Liferay Portal 6.1 Systems Development
I agree. Here's the link:
subject: Hyper link in JSR 168
It's not a secret anymore!