Click to See Complete Forum and Search --> : Single quote problem


gokul
05-23-2008, 02:30 AM
i am getting employee name from sql. using front end jsp.

the employee name are inserted into array and separated by single quotes to display..

if the employee name is having single quote.. thr was a problem to access

because the array is getting confuse of that single quote..

how can i resolve that prob...

plz help me.....

Khalid Ali
05-23-2008, 08:50 PM
well brute way of doing is that when you retrieve data before you display it make sure that you escape the single quot like
\'