My error from my previous post in
JSP's now leads onto
servlets. I was trying to figure out why i was being given the message that my data has been saved to my database, even though it hadnt. So i done some messing about with the code and found out somthing i just wish to confirm.
I have a register and login servlet, which obviously registers and logs in a user. If the user successfully logs in, then the servlet points them to here
Now in this jsp, the user has four buttons to choose, each one taking them to a new jsp. I did not however provide a servlet to this jsp in order to point the user to the new jsp. I thought i could get away with doing this
This brings up the jsp no problems, but it seems to make it no longer part of my hierachy. I am pretty sure this is my problem as i removed all the register and logn servlet and code, and i pointed my browser straight to the jsp where the user can enter a competitor (The one where no data was previously going to database). But this time it works and data is being saved. Does this make sense? So when i create a project, all linking should be done through servlets? Or can anyone think of another reason why this might of been happening?
cheers