Hi Antonio,
The code looks simple and fine. Please replace the lines in your code as:
String openDocURL="http://" + request.getServerName() ":8080/InfoViewApp/listing/main.do?token=" + logonToken;
String openDocURL="http://<hostname>:8080/InfoViewApp/logon/start.do?ivsLogonToken=" + logonToken;
At each execution of the jsp code, you can use either of the link (openDocURL) specified above to redirect to InfoView. You have to comment out the other link in the code.
Regards,
Anchal