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.

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.