Passing values from an applet to a main method for JDBC

From: "suhail sarwar" <sarwar(at)postmaster(dot)co(dot)uk>
To: pgsql-novice(at)postgresql(dot)org
Subject: Passing values from an applet to a main method for JDBC
Date: 2001-05-02 11:44:59
Message-ID: PM.19981.988803899@pmweb6.uk1.bibliotech.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

I have a problem with my java applet and my postgresql database. The applet takes values in a text field and inserts them into a database table.

The actionPerformed() method in my java applet deals with a button and gets values from a text field. Stores the input value to a string. How can i pass this string into the main method. Whenever i assign its value to a string it gives an error message "nonstatic variable cannot be referenced from static context". So, is there a way to pass a value from actionPerformed method (that is outside the main method) into the main method?

Any ideas??

Suhail Sarwar

Browse pgsql-novice by date

  From Date Subject
Next Message Adam Walczykiewicz 2001-05-02 19:17:28 PL/Perl documentation ...
Previous Message Patrice Espié 2001-05-02 08:08:51 Re: SELECT performance problem on a join