https://developer.mozilla.org/en-US/docs/Web/SVG
http://msdn.microsoft.com/en-us/library/ie/bg124132%28v=vs.85%29.aspx
About Graphic Design, PrePress, Fine Art, Programming, Application developing, Java. Something from my life.
"<" (predefined letters combination):
/** <b - as a html tag:
if (a<b) {
doThis();
} else {
doThat();
}
*/
public static String filter(String input) {
StringBuilder filtered = new StringBuilder(input.length());
char c;
for(int i=0; i<input.length(); i++) {
c = input.charAt(i);
if (c == '<') {
filtered.append("<");
} else if (c == '>') {
filtered.append(">");
} else if (c == '"') {
filtered.append(""");
} else if (c == '&') {
filtered.append("&");
} else {
filtered.append(c);
}
}
return(filtered.toString());
}
Somewhere in html:
form action="SynchTest" method="POST" name="form1"
input name="SubmitBtn" type="submit" value="SUBMIT"
_______________
public class SynchTest extends HttpServlet {
Asynch a = new Asynch();
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
String title = "SynchTest";
int y = 40;
if(a.getValue() > y) {
try {
Thread.sleep(5000);
} catch (InterruptedException ex) {
out.print(ex.toString());
}
a.subtract(y);
}
String value = "Value is: "
+ String.valueOf(a.getValue());
String threadInfo = Thread.currentThread().getName();
value = value +"\n" + "Thread name is: " + threadInfo;
out.println(MyHTML_util.getHTML(title,value));
} finally {
out.close();
}
}
_____________________