Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Let me point out that it's common for a servlet to forward to a JSP. However you have chosen to redirect instead of forwarding; was that a specific requirement which somebody gave to you? If not, I'd suggest changing the servlet to forward to the JSP after it completes its work.
from a jsp redirected page to a servlet, this redirects to another jsp page, but when I click the submit button, the form deletes all data and does not redirect...
So the navigation is: index.jsp -> Parquear servlet -> reserva.jsp
1. The servlet Parquear: can you tell the configuration of the servlet in the web.xml 2. Place a debug statement in Parquear like a log or System.out.println("I am in the Parquear...") and verify the log files/console and see this debug output is appearing.
Do you see anything in your logs (for example do either of the messages in the catch blocks appear)?
If not, as Prasad says, add some logging into the servlet so you can at least see where in the code it is going, and what values it is dealing with.
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss