Hi All!
I'm working on a web application, JSP, where a user selects the text with the mouse in html. I want this text to be inserted in a MySQL database as a java string using prepareStatement in Java and executeupdate.
Example:
String querystring = "INSERT INTO mySelectedTextTable(selectedTextWithMouse) VALUES (?)";
selectedTextWithMouse would be a java String, but the selected text is kept on a javascriptvariable.
Any clues on how to convert the javascript variable into a java String?
Thanks in advance.