Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Session attribute value not updating

Bharat Dave
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on an assignment which stores the value of an invoice form which is using JSP to the servlet where after the validation it stores the values in an arraylist of the same POJO invoiceData class.It then sends it to another JSP which displays the list of invoices.Along with the arraylist I am also suppose to send tax and finaltotal after the calculation as attributes.Now,this is where I am stuck.I have passed two variables tax and finalTotal as attribute but it doesn't update the value everytime.Infact,it always shows the value of the last entry.

Here are the files.

here is the servlet class

Here is second JSP

Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic