Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to map the host name to the listener (ip?) in the hosts file

Status
Not open for further replies.

blevy9

Programmer
Apr 22, 2003
16
US
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?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top