This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hyper link in JSR 168

 
jyothish vemula
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to portals could help me?
How can i implement the hyperlink in jsr 168?
 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might even want to explore some of the JSR168 custom tags as well, such as this one:

<portlet:renderURL>

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
author
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is very simple in Liferay Portal.

Here is an example:
[ June 14, 2008: Message edited by: Jonas X. Yuan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic