DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   Retrieving a textfield value. (http://www.daniweb.com/forums/thread121372.html)

Java_tyro Apr 28th, 2008 8:03 am
Retrieving a textfield value.
 
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.

peter_budo Apr 29th, 2008 7:34 am
Re: Retrieving a textfield value.
 
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


All times are GMT -4. The time now is 3:57 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC