开发者

Can h:CommandLink POST to an external URL?

I'm working on a Seam application and need to submit some form data to an external URL only I'm a bit stumped as to how I should approach it.

h:CommandLink is the ideal tool only it doesn't seem to be able to PO开发者_JAVA百科ST to an external URL. Any ideas?


Use a normal HTML form. Since there's nothing to bind to your business/model layer, you don't need JSF components at all.

<form action="http://example.com" method="post">
    <input type="text" name="foo" />
    <input type="submit" />
</form>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜