We help IT Professionals succeed at work.
Get Started

How do I use a Vector and a loop to continually display all rows so far in this web app?

CharleneS77 asked
Last Modified: 2013-11-24
I am working on an EmployeeTest web app.  I have been trying to modify my web app so that I can continually display all of the rows each time a new row is added (display all of the added employees so far).  My web app is attached (EmployeeTest).  Remove the .txt extensions from each file except for the departments.txt file.  I am using Java 6 and Tomcat 6.  

I am able to successfully run the web app if I comment out my attempted modifications.  The files I need help with are confirmation.jsp and HiringServlet.java.  The code I need help with in each of these files is located between a set of 2 comment lines in each of these files, so it is very easy to locate.  The code I have attempted is commented out, so you should be able to successfully run the web app without making any initial changes.  

In my many attempts to reach success, I have created a separate (very small) web app (Display_Names) which does continually add all of the rows so far.  I have also attached the Display_Names web app.  If someone can even point out the reason why my Display_Names web app works and compare it to my EmployeeTest web app, that may be enough to set me on the right track.

I really need some assistance with this.  I have been trying to get it to work for over a week, and I am still not able to see what I am doing wrong.  Any help is extremely appreciated!  Thank you in advance.  

Watch Question
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE