How to redirect webpage by Lotus Notes java agent?

橙三吉。 提交于 2019-12-04 21:11:55

The solution is much easier: Whenever you want anything to redirect in Lotus Notes in the web, then you simply "print" the redirection url in brackets. Your code can be simplified like this:

PrintWriter pw = getAgentOutput();

if(myvar == 1){
    pw.flush();
    pw.println("[http://www.mypage.com]");
}  

This will instantly redirect you to the url without visibly loading the "agent- page" first.

This would work in LotusScript- Agents as well as

print "[http://www.mypage.com]"
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!