How to set the destination URL of a HtmlCommandLink component

How can I please set by code the URL which will be opened when I click on an HtmlCommandLink or HtmlOutputLink .I couldn't find the associated method.Thanks in advance.
[197 byte] By [WebServicea] at [2007-11-27 6:09:30]
# 1
onclick="javascript:window.open(url);return false;"
mraja at 2007-7-12 17:13:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks for your replyBut what I want is to set the url dynamically in a managed Bean.Because I create the component in the bean.Thanks
WebServicea at 2007-7-12 17:13:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Have u tried setting using setOnclick method?
venkksa at 2007-7-12 17:13:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I want to set the URL to use the component like the <a> html tag .So to open an http url not a JSP page.
WebServicea at 2007-7-12 17:13:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Just use h:outputLink.
BalusCa at 2007-7-12 17:13:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
Thanks for your reply .But I didn't foud the method allowing to set the url attribute to the component.But now my problem is resolved.I used the com.sun.webui.jsf.component.Hyperlink component.And it has method named setUrl making what I want.Thanks.
WebServicea at 2007-7-12 17:13:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
Didn't HtmlOutputLink#setValue() work then?
BalusCa at 2007-7-12 17:13:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
I don't know because I think that the value is just the displayed text of the component not the destination URL
WebServicea at 2007-7-12 17:13:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...