Just check the method attribue of the form from where you get the parameters ( 'flyfrom; ....etc). May be the form method is a POST and hence your servlet may not have called the doGet() method at all !!!
If this is not the case then try the age old method of giving System.out.println() inside the doGet() methid and find out where thy problem is
Best Regards, Srini
Joined: Apr 06, 2004
thanks for ur reply, i got the values from html and the values got printed. i donot know the problem, been trying out from past 3 days.
please any one help me. i donot understand where the problem is? i am using JBuilder software.
1. Are you getting any exception. 2. What is auto commit mode of Connection. 3. I dont see any commit in your code 4. what dose printStackTrace say (on which line number null point exception occurs) 5. What is followling code print System.out.println("values u enetered are:" + i);
6. REMOVE the trim() after request.getParameter("____").trim()
seems some of your parameter is null and you are applying trim on same.
7. Check your connection if it is null or not
Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Aparna, just as a design suggestion. It is best to refactor out the JDBC code and query into POJOs (Plain Old Java Object) helper classes for reuse by other Java code that might not necessarily be a Servlet. Servlets should really just handle the request and return the response, letting other helper class do the dirty work.