Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/358.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在URL中设置属性以调用gwt+中的servlet;JAVA_Java_Servlets_Gwt_Download - Fatal编程技术网

如何在URL中设置属性以调用gwt+中的servlet;JAVA

如何在URL中设置属性以调用gwt+中的servlet;JAVA,java,servlets,gwt,download,Java,Servlets,Gwt,Download,我想点击客户端的按钮打开存储在服务器上的文件。 单击handler,我添加了代码- String url="../../downloadServlet?fileName="+fileN+"?recodId="+recoId; Window.open(url, "", ""); 在这个url中,我想添加两个不同的参数——文件名和记录ID。 上述实现对此不起作用。如何在请求中传递更多参数 谢谢尝试使用和而不是另一个?: String url="../../downloadServlet?f

我想点击客户端的按钮打开存储在服务器上的文件。 单击handler,我添加了代码-

 String url="../../downloadServlet?fileName="+fileN+"?recodId="+recoId;
 Window.open(url, "", "");  
在这个url中,我想添加两个不同的参数——文件名和记录ID。 上述实现对此不起作用。如何在请求中传递更多参数


谢谢

尝试使用
而不是另一个

String url="../../downloadServlet?fileName="+fileN+"&recodId="+recoId;

也许您想使用:
String url=“../../downloadServlet?fileName=“+fileN+”&recodId=“+recoId。。?