Below is the tag syntax(.with example) in the DSP page from where you are going to invoke servlet… …
<FORM name="form1"
method="GET" action="/web/MY_ENTERPRISE_MONITOR/DownloadFile?FILE_PATH=%value Filepath%&FILE_NAME=%value filename%">
Where “DownloadFile” is the servlet name and “MY_ENTERPRISE_MONITOR” is the packagename … As usual , servlet class file will be copied into “\web\WEB-INF\classes” folder in package level …and configure web.xml file …
"filepath" and "filename" are the variable values we are passing to Servlet and in servlet, we retrieve them using request.getParameter("FILE_PATH");
My "DownloadFile" servlet has code to download the file from the path that we pass as a parameter from DSP ...
So when we hit on submit button in the dsp , it will invoke the given servlet, as mentioned in the action variable of <FORM> tag, passing filename and filepath as parameters and will download the file......
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB