Ok, I hava a Servlet thats createing an html page. The Java compiler won't let me compile w/ Double ticks (" in my out.println statements. Normaly this isn't a problem, I just replace the (" with single ticks ('), but now one of my out.printlns is a button with the action property useing window.location = "bla-ba-blah.html". Here is the line of code I have.
//out.println("<input type = 'buton' value = 'Welcome page' OnClick = 'window.location = "/Welcome.html"'>"
Were you see the double ticks, before and after /Welcome.html, have to be double ticks for this to work. Keep in mind that this page is on a local machine useing the Java Virtual Machine. Just in case you say "well the address is wrong, but." Any suggestions would be greatly appriciated. Thanks, Drew
"Mistakes are the portals of discovery"
James Joyce
//out.println("<input type = 'buton' value = 'Welcome page' OnClick = 'window.location = "/Welcome.html"'>"
Were you see the double ticks, before and after /Welcome.html, have to be double ticks for this to work. Keep in mind that this page is on a local machine useing the Java Virtual Machine. Just in case you say "well the address is wrong, but." Any suggestions would be greatly appriciated. Thanks, Drew
"Mistakes are the portals of discovery"
James Joyce