Passing values from an applet to a main method for JDBC

Поиск
Список
Период
Сортировка
От suhail sarwar
Тема Passing values from an applet to a main method for JDBC
Дата
Msg-id PM.19981.988803899@pmweb6.uk1.bibliotech.net
обсуждение исходный текст
Список 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
theminto a database table. 

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

Any ideas??

Suhail Sarwar

В списке pgsql-novice по дате отправления:

Предыдущее
От: "suhail sarwar"
Дата:
Сообщение: inserting multiple vales into multiple tables using 1 prepared statement
Следующее
От: Joel Burton
Дата:
Сообщение: Re: [PHP] psql with PHP question