Aren't you allowed to use JSP ? Those servlets are a pain to read with all those html tags. Basically, you do some logic in your servlet and redirect to a JSP file to display the results. If you can use JSP in your assignment, clean those servlets first
Originally posted by Satou kurinosuke: Aren't you allowed to use JSP ? Those servlets are a pain to read with all those html tags. Basically, you do some logic in your servlet and redirect to a JSP file to display the results. If you can use JSP in your assignment, clean those servlets first
I am not allowed to use JSPs. But I think if you just copy and paste this code in your IDE, it becomes fairly clear and legible. I have the logic wrong somewhere but can't figure out what is wrong.
For example, I think that the 2 forms on 1 page are returning the hidden stuff.
That's a pity It's very hard to understand what's going on
I can see that you have before the second form. You should remove both body and html closing tags.
Thanks for the reply Satou.
I did what you suggested but the problem still exists.
I have a feeling that since I have a checkbox named items and also a hidden value named items. Now when I want to remove the items, only the hidden values gets transmitted, not the checkbox since there are in a different form. So there is no way of knowing which items have been unchecked.