I am a beginner to servlets..and I got a question seeing this code written inside a servlet.I\'ll be thankful if someone explain me the usage of soo many\"\\\"s here
<
You must escape the quotes "
inside Strings by writing \"
. If you don't do this, the Strings will end too early.
Edit: Example:
String thisWillNotCompile = "This String terminates right now" and not later";
Trying to compile this will give you a syntax error.
String thisWillCompile = "This String doesn't terminate right now\" but now";
This works.
Edit 2: For more details read up on Escape Sequences in the Java Tutorial.