problem for print out data from database to the web browser

From: Samuel Chan (samuel_138_at_iprimus.com.au)
Date: 10/17/03


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!



Relevant Pages

  • Re: I lose data, when I try to save a loaded DataTable on the click of another button in an asp.net
    ... that allows for the upload of an excel sheet into the database. ... I have an upload button and a save button. ... which is bound to a GridView for previewing before ... protected void Upload_Click(object sender, EventArgs e) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Im about to commit matrimony (now with link)
    ... Keep tweaking the CV and upload new versions if the old ... with Wboserve yesterday, but their upload pages were borked. ... database and run several different filters against it. ... There's still an awful lot of COBOL code around and universities don't teach ...
    (uk.rec.sheds)
  • Re: form to email document
    ... >> append the Session ID for that user Session to the file name. ... >> name uploaded.This can come from a simple text file or a database. ... >>> I was hoping for something like the procedure used to upload a form, ...
    (microsoft.public.frontpage.programming)
  • Re: Can you Upload a file and update a db on 1 form?
    ... You will need to create a form, then submit it to the database, then in the next step in the process ... allow the user to upload a file and then update the record that was created in the first step, ... security update, then there is usually no charge for the call. ... > user to upload a newsletter and update the database with the same form. ...
    (microsoft.public.frontpage.programming)
  • Re: Listbox controls
    ... When the first time I upload the file into the database, ... 'Dim oConnection As New OleDbConnection ... Dim strFileUploadQuery As String = "INSERT INTO Attachments ...
    (microsoft.public.dotnet.languages.vb)