Manuel:

I imagine you are writing some kind of JDBC code right?  Well, use
PreparedStatements in place of just Statements and your work's a breeze..:)

Regards,
Geeta
P>S Look at the javadocs for java.sql.PreparedStatement

Manuel Lenz wrote:

> I create DB-Inserts from my struts application.
> But If an user types in the sign ' any dynamicly created inserts fail.
> This ist because of the sql-syntax which divides the string which will be
> saved with '.
>
> For example: insert into table test (name, number) values ('mr burns',
> '01723256477');
>
> How can I handle inserts in html-formulars which have the typed sign ' ?
>
> Greetings,
> Manuel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to