This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes TextFeild value from DataBase not coming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "TextFeild value from DataBase not coming" Watch "TextFeild value from DataBase not coming" New topic
Author

TextFeild value from DataBase not coming

Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
Hi all,

I'm having this problem, that when i do a System.out.println for variable pass in the while loop, the value is coming right but when i try to use that value as setText for my textField in the createSimpleDialogBox() the variable pass value is empty. Why is it so. and how can i rectify it.???
My code is below..please help.



Thanxs....
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Rekha,
I found out some misplace of the method calls in your code...

I believe that different instances calling the same method will cause you a problem. So could you check those and give us some feedbacks on that? I hope this helps...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
hi all,

well i think there was a problem in the way how i was declaring the variable .. now that i have changed it to static every thing seems to be working fine...


Thanxs all... i'm sure i'll be neading all ranchers help shortly beacuse now i have to call this class file from a web page..... let me try..if i get stuck then i know where to come
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Rekha,
Well, as for static variables, you will be able to use it throughout all the instances... It will be fine, as long as you want to use those variables as such manner... But if you do want to use them in different instances, then you cannot avoid using instance variables...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: TextFeild value from DataBase not coming
 
Similar Threads
Look and Feel
Applet and servlet communication problem
Error in Eclipse and Netbeans
Radio button class returns null pointer exception
One strange question about listener