Re: - Mailing list pgsql-interfaces

From Peter Mount
Subject Re:
Date
Msg-id 5.0.2.1.0.20010207213612.009ec5d0@mail.retep.org.uk
Whole thread Raw
In response to ...  (vanam vishnuvardhan <vanam_us@yahoo.com>)
List pgsql-interfaces
At 23:59 06/02/01 -0800, vanam vishnuvardhan wrote:
>HI
>       iam vishnu .I have some problem while
>communicating between an applet and servlet.
>      iam providing some text field and enter some
>information in applet and using get method iam sending
>this informatin to the servlet.The problem occurs when
>the string entered in the text field contains gaps or
>seperated by white spaces ,the servlet cannot able to
>get the exact string in the textfield,sometimes applet
>fails to connect even to servlet.
>      for eg.
>           In textfield if i entered "Iam great"
>      The URL iam providing is
>..../servlet/test?info="+tf.getText();
>  where tf is the name of the textfield

You must encode the url. Look at java.net.URLEncode [the encode() method].

This is nothing to do with Postgres or JDBC.

Peter



pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgAccess fails to launch on HPUX
Next
From: Peter Mount
Date:
Subject: Re: PostgreSQL and PHP persistent connections