Hi All I am developing one application using jsp and servlets. In one jsp form i have used 3 forms and on click of each i am calling different servlets. When I am clicking on the submit button for 1 servlet the values are supposed to store in database, but it is not happening so. I don't know what is the actuall problem, I checked the code 4-5 times both servlet and deployment descriptor one, but could not locate the problem. It is not even generating even a single event. The entire console is blank. May i get anyone's help here? The code for servlet, jsp and web.xml is given below. Please help any help will be appreciated. Your help can help me in completing the project and deliver it to the client.
code for jsp
I am talking about form named "frmVoucherDetails". The other forms data i have manipulated for confidentiality.
Hi Javedali - As Bear suggested you can use the conextpath - hardcoded or get from request (<%=request.getContextPath()>) and you can put some SOPs/log statements inside doPost() to verify if the request is really hitting the servlet or not
Hi Bear and Sujata.
I am highly thankful to both of you for helping me with your replies. My only problem with this is that when I am able to run other servlets like this then, whats wrong in this servlet only? Bear you are right that these technologies are almost obsolete nowadays and we must work with these 21st century technologies as you mentioned. But I am totally helpless because I am not comfortable with these technologies, and my client has nothing to do with the technologies but early delivery. I would be thankful to you if you can help more further.
Joined: Jan 29, 2008
You are right. But for FYI I want to tell you that the js file is working fine, the validations for all the fields are working fine except the servlet is not hitting. As per your instructions I have written SOP's in servlet's doPost() but the attempts are in vain. Let me try, my attempts are on. May get back if need help.