'how to send two parameters in <anchor > href for downloading file?
Ex: i try to send single parameter , now i need to send two parameter with request body
so how to achieve this or "how to send filepath via request body to servlet"
out.println(" <a href=Download?filename="+map.get("filename")+">Download</a>");
Solution 1:[1]
Query string (i.e. the part of URL after '?') can contain multiple parameters. Separate them with '&'. Example:
out.println(" <a href=Download?filename="+map.get("filename")+"&filepath="+map.get("filepath")+">Download</a>");
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
