troubleshooting Question

Populating text fields problem - setter method

Avatar of dkim18
dkim18 asked on
JSP
3 Comments1 Solution212 ViewsLast Modified:
Hi!

I am working on someone else's work and I am trying to populate each text field after select sql stmt, but nothing works.

Jave code:

PersonalForm personalForm = new PersonalForm();
            String first_name = (String)hm.get("first_name");
            String last_name = (String)hm.get("first_name");
            System.out.println("first_name: " + first_name);
            System.out.println("last_name: " + last_name);
            
            this.setTxtFirst((String)hm.get("first_name"));
            personalForm.setTxtMiddle((String)hm.get("LAST_NAME"));
            personalForm.setTxtLast("G");
            personalForm.setTxtCellPhone("2223334444");

*those print stmt do work, but doesn’t set. I tested, but nothing works.
++++++++++
JSP page

<td width="52%"> <input type="text" name="txtFirst" id="txtFirst" maxlength="30">


What am I doing wrong?

thanks in advance.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros