User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 361,549 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,054 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 453 | Replies: 1
Reply
Join Date: Apr 2008
Posts: 2
Reputation: Java_tyro is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Java_tyro Java_tyro is offline Offline
Newbie Poster

Retrieving a textfield value.

  #1  
Apr 28th, 2008
Hello,

plz help me retrieving a textfield value from from2 to form1.

I have a textfield in form1 to retrieve Employee No.
When I click a button in form1, form2 opens which contains list of employee numbers.
In form2, I select a employee number and click a button.

How should I make this selected employee number to appear in form1 textfield?

Plz help me in solving this problem.
Thanks.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,770
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 8
Solved Threads: 184
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Monster is back

Re: Retrieving a textfield value.

  #2  
Apr 29th, 2008
Simple suggestion: let user enter number in text field, read then employee number from text field, validate it in servlet, compare with existing records, then:
  1. if number exists, return and display employee record
  2. else, return error message "Submited number doesn't exists" and you may ask for new number
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 1:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC