Do not use on any
shared computer
September 6, 2008 02:20pm pdt
 
[x]
Attachment Details

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

Tags: Servlet, JSP, Web, Application, Tomcat
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.  
Attachments:
 
Runnable web app, but is not displaying all rows added so far.
 
 
This small test app accomplishes the task I am attempting.
 
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Programming
Question Asked By: CharleneS77
Solution Provided By: CharleneS77
Participating Experts: 2
Solution Grade: B
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by bertlanq
Expert Comment by bertlanq:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by CharleneS77
Author Comment by CharleneS77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by CharleneS77
Author Comment by CharleneS77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by CharleneS77
Author Comment by CharleneS77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by CharleneS77
Accepted Solution by CharleneS77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by rrz@871311

Rank: Sage

Expert Comment by rrz@871311:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by Vee_Mod
Administrative Comment by Vee_Mod:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by CharleneS77
Author Comment by CharleneS77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by CharleneS77
Author Comment by CharleneS77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by Vee_Mod
Administrative Comment by Vee_Mod:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_EXPERT_20070906