Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Session attribute value not updating  RSS feed

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

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!