Hi Ranchers,
Our environment - WPS 6.0, JSR 168 portlet, RAD 7.0..
In one of our portlet page I have got following block of code
<%
String url=request.getContextPath()+"/DownloadServlet?indexToken="+dataBean.getIndexToken();
String encodedURL=response.encodeURL(url);
%>
<form action="<%= encodedURL %> method="post" target="_new">
<input type="checkbox" name="zipRequired" value="false"> Select the 'zip' option---something like this
<input type="submit" value"downlaod">
</form>
When the portlet page is rendered using WPS 6.0, the html source of the above JSP looks something like this.
<form action="
/1/PA_12_XYZ/DownloadServlet;jsessionid=A9BA1447B82CB594B176D479288EAE1B?indexToken=-432353"method="post">
But when the 'download' button is clicked, it opens up a new window with following URL
http://www.server-node.com/1/2?indexToken=-432353
Since the above URL is incomplete the download servlet never gets invoked.
Please could you suggest why other details of URL is getting disappeared.
The code is working absolutely fine in my local development environment, but on our actual system test environment
the above URL problem is coming into picture. I meant when the button is clicked, the contextpath along with the servlet name is getting removed from whole URL.
I am able to download in my local development environment using both IE and Mozilla...
Can anybody shed some light on this please?
Thanks