try to use &
instead of another ?
:
String url="../../downloadServlet?fileName="+fileN+"&recodId="+recoId;
Question
I want to open a file stored on server on click of a button on client side. On click handler I added code-
String url="../../downloadServlet?fileName="+fileN+"?recodId="+recoId;
Window.open(url, "", "");
In this url , I want to add 2 diffrent parameters- FileName and RecordId. Above implementation is not working for this. How can i pass more parameters in a request?
Thanks
Solution
try to use &
instead of another ?
:
String url="../../downloadServlet?fileName="+fileN+"&recodId="+recoId;