After more 2 000 000 (two million) views on forum for 1.5.0.x development versions... and 1.6.1.0, 1.6.3.0-dev versions
A new stable version, UltraVNC 1.6.4.0 and UltraVNC SC 1.6.4.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38095
Feedback is always welcome

2026-04-01: After 1.7.x, 1.8.x release builds need tests and feedback: https://forum.uvnc.com/viewtopic.php?t=38158

2026-03-11: CVE-2026-3787 and CVE-2026-4962 - Clarification: https://forum.uvnc.com/viewtopic.php?t=38155

2025-12-02: We need help: English Wikipedia UltraVNC page has been requested to deletion: https://forum.uvnc.com/viewtopic.php?t=38127
Any help is welcome to improve the UltraVNC page and/or to comment on the Wikipedia Talk page

2025-05-06: Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078

2023-09-21: Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Development: UltraVNC development is always here... Any help is welcome
Feedback is welcome

Help is very needed for:
Windows ARM/ARM64 support: https://forum.uvnc.com/viewtopic.php?t=38163 / https://github.com/ultravnc/UltraVNC/issues/346
macOS support: https://forum.uvnc.com/viewtopic.php?t=38164 / https://github.com/ultravnc/UltraVNC/issues/347
Linux support: https://forum.uvnc.com/viewtopic.php?t=38165 / https://github.com/ultravnc/UltraVNC/issues/348
*BSD support: https://forum.uvnc.com/viewtopic.php?t=38166 / https://github.com/ultravnc/UltraVNC/issues/349
*Solaris support: https://forum.uvnc.com/viewtopic.php?t=38167 / https://github.com/ultravnc/UltraVNC/issues/350

Need some help regarding Java

Should you have problems with the JavaViewer? Here is the place to look for help or report issues
Post Reply
khanshab
Posts: 3
Joined: 2009-02-20 18:39

Need some help regarding Java

Post by khanshab »

Hello everyone,

Ok here is my problem. I have a Java servlet wherein it has a StringBuffer that appends my html tags and a JavaScript. My question is that is there a way wherein I can append a JavaScript in the StringBuffer using response.setContentType("text/html")? oris there another way to append a JavaScript in Java to be flushed in html?

Below is a sample script I made.

Code: Select all

StringBuffer buff = new StringBuffer();

buff.append("<p>just some text here..</p>");
buff.append("<script \"text/javascript\">callFunction();</script>");

response.setContentType("text/html");
response.getWriter().println(buff.toString());
response.getWriter().flush();
Whenever I execute this program it outputs the html part but does not execute the JavaScript part.

Thanks
Post Reply