I implemented PDF and Excel file generation in my PowerBuilder code using generate() function and using redirection in JSP Client to send generated file to the Browser:
String ls_filename = htmldw.generatePDF();
if (ls_filename.length() > 0 )
{
response.sendRedirect(ls_filename);
}
It works fine when I run Application on my local machine, where Server installed.
But when I install Application on the server and run from client machine, I got IE error: "Cannot find Server or DNS Server".
From address bar of Client browser I see my error – I am trying to redirect output file to my host name.
The work around of this is to map the host name to the listener (ip?) in the hosts file. How to do this in JSP page?
String ls_filename = htmldw.generatePDF();
if (ls_filename.length() > 0 )
{
response.sendRedirect(ls_filename);
}
It works fine when I run Application on my local machine, where Server installed.
But when I install Application on the server and run from client machine, I got IE error: "Cannot find Server or DNS Server".
From address bar of Client browser I see my error – I am trying to redirect output file to my host name.
The work around of this is to map the host name to the listener (ip?) in the hosts file. How to do this in JSP page?