DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Posts
    3

    Unhappy displaying result in text field

    hi, i hava a text box and a button in 1 page. for example let us say that i enter a employee number in that textfield(which is already there in the database). And when i press the ok button other deatils like employee salary, employee address must be fetched from the database and should be displayed in the next page in a textfield. Is there any predefined methods like setText or setString. please help if coding is there it will be very helpful for me. byeeeee
    Last edited by shanmuganand_s; 09-06-2005 at 01:43 AM.

  2. #2
    Join Date
    Aug 2003
    Posts
    313
    Are you talking about HTML forms or Java swing widgets? For JTextbox widgets, there is a method setText(). For example:
    Code:
    JTextbox txt = new JTextbox();
    txt.setText("this is the text to display");
    Hope this helps.
    ~evlich

  3. #3
    Join Date
    Sep 2005
    Posts
    3
    yes iam talking about HTML forms only. iam using jsp also to connect it with the database. in that i have used both setText and setString methods but that doesn't work.

Similar Threads

  1. Getting a GUI to run
    By Eric in forum Java
    Replies: 4
    Last Post: 04-14-2006, 09:09 AM
  2. Replies: 1
    Last Post: 03-09-2005, 11:58 AM
  3. SQL text column to Access memo field
    By Craig in forum VB Classic
    Replies: 1
    Last Post: 06-25-2002, 06:41 PM
  4. Ted, you're a prince!
    By Georgiana Trigg in forum VB Classic
    Replies: 0
    Last Post: 10-29-2000, 11:21 AM
  5. Replies: 2
    Last Post: 05-31-2000, 10:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links