This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi guys, I am currently writing a web application that involves a section where users can submit code. I was just wondering if anyone had any idea which data type/object I should use to store the code after it's submitted from the form? I will need to go write a loop to change " into \" so it can be stored in the database too, so something that would enable me to access each character is needed. Thanks! Hazel
I've modified the code that I wrote back for that other thread:
HTML FORM SERVLET (mapped to /encTest) OUTPUTBasically, it doesn't look right on the *viewed* web page, because \n at the end of the lines doesn't equate to <br>'s in HTML. But otherwise, all special chars turn out ok.