problem for print out data from database to the web browser
From: Samuel Chan (samuel_138_at_iprimus.com.au)
Date: 10/17/03
- Next message: Manish Mishra: "JDBC query for date datatype (Urgent)"
- Previous message: ragnart: "Select * from table T where T.ssn IN (...arraylist...) - How to do this"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 17 Oct 2003 22:30:03 +1000
Hi everyone,
I'm currently working on the JavaServlet project, I've done a upload class
to upload the input information to the database. Unfortunately, if user try
to upload some html code into the database, when I try to print out what
I've got in the database, those html code in the database will crash my
system. I have tried several method.For example:
out.println("<td valign=\"top\" width=60%><code>" + tmp + "</code></td>");
tmp = those html code in the database
and I have put <code>........tmp.....</code>
but it is still not working on html code
So can anyone tell me how can I solve this problem?
Thank you very much!
- Next message: Manish Mishra: "JDBC query for date datatype (Urgent)"
- Previous message: ragnart: "Select * from table T where T.ssn IN (...arraylist...) - How to do this"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|