我有一个html页面,我使用post方法发送一些参数。现在我想在gwt客户机上得到这些参数。在gwt中是否有任何方法来获取客户端的post参数。我使用以下代码
<html>
<body>
<form action="http://localhost:8080/popnnn/js.html" method="post">
<input type="text" id="foo" name="foo">
<input type="submit" value="Send" name="submit" id="submit">
</form>
</body>
</html>在我的gwt代码中
TextBox text=new TextBox();
text.setText(Window.Location.getParameter("foo"));这是完全用get方法而不是post,请帮助.
发布于 2014-05-09 06:58:19
应采取以下步骤:
js.html转换为js.jsp即可。试一试:
https://stackoverflow.com/questions/23557447
复制相似问题