[Urgent]How to make an external URL in Portal server with JSF

I am using websphere portal server 5.0.

<h:outputLink value="www.yahoo.com">
<f:verbatim>abc</f:verbatim>
</h:outputLink>

i try to use the above code in the portlet, the rendered pages keeps giving me
http://localhost:9081/myProject/www.yahoo.com


If I change it to
<h:outputLink value="http://www.yahoo.com">
<f:verbatim>abc</f:verbatim>
</h:outputLink>
the rendered pages shows me
http://localhost:9081/myProject/http://www.yahoo.com

The result I want is just
www.yahoo.com or http://www.yahoo.com

Is it because the portlet cause the problem, if yes how to solve it? so that I can refer to an external link like www.yahoo.com?
LVL 9
william007Asked:
Who is Participating?
 
GranModCommented:
Closed, 500 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0
 
fargoCommented:
use

<h:outputLink value='http://www.yahoo.com'>
    <h:outputText value='Yahoo!'/>
  </h:outputLink>
0
 
actonwangCommented:
or try this:

<h:outputLink value="http://www.yahoo.com">
abc
</h:outputLink>
0
 
william007Author Commented:
Hi,

Seem like in websphere portal, it always treat the value in outputLink as relative link.

I use the following to solve the problem
<h:outputText escape="false" value="<a href='http://www.yahoo.com'>abc</a>"/> to solve the problem.

Thanks for all the effort.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.