This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
hello all,
i m working on eclipse9, i hv created a web application with the help of jsp database connectivity,i found some problem while running the error 404 occured....i m giving here the full view of myapp.
new->project->web project->myproject(name of my project)
myproject->webroot->customerfrm.jsp(neme of my jsp page),in this page i write the following code.
can anyone tell me ,whats d prob,in dis code there is no error,the problem can be of tomcat server.
thanks.
when i click the submit button i got the following error
...
i have done any mistake in my code regarding database connectivity?
Yes, that is what I would guess, but I am not sure because you didn't post the full error text. There should be more after "javax.servlet.ServletException: java.sql". If that is all that showed up in the browser, then look at the web server log file. By the way, which web server are you using?
parni raghuvanshi
Greenhorn
Joined: Jun 21, 2011
Posts: 14
posted
0
sir, actually i am trying to make a project on customer support tool in java with eclipse 9 ide,but i want you to please give an overview that how i would take initial,till now i have made a jsp page tried to connect database,but the problem got occured of exception,i am giving here this exception........
HTTP Status 500 -
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: javax.servlet.ServletException: java.sql.SQLException: Driver does not support this function
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.servlet.ServletException: java.sql.SQLException: Driver does not support this function
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.customerfrm_jsp._jspService(customerfrm_jsp.java:234)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.sql.SQLException: Driver does not support this function
sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStatement.java:117)
org.apache.jsp.customerfrm_jsp._jspService(customerfrm_jsp.java:91)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
Apache Tomcat/6.0.13
..................................................................................
i am using type1 driver,is this is the reason for above exception?
thanks.
parni raghuvanshi
Greenhorn
Joined: Jun 21, 2011
Posts: 14
posted
0
i tried to use type4 driver & i got the following exception on submit...
HTTP Status 500 -
First try running your jdbc code from console. It seems you are passing String in place of some other table datatype. Please review it and your db schema too.
parni raghuvanshi
Greenhorn
Joined: Jun 21, 2011
Posts: 14
posted
0
sir i have given varchar2 datatype for which i have given string & i also removed variables like officephone,mobile ,zipcode from my program as wall as database too.but still i am getting error .........
HTTP Status 500 -
This error message should be obvious. You will probably have to look at the generated java source file for your JSP to determine the exact line that caused the problem - its line 83 in the generated source:
>>>org.apache.jsp.customerfrm_jsp._jspService(customerfrm_jsp.java:83)
By the way, I recommend that you not embed server-side scripts within a JSP, it makes fixing problems like this a little more difficult. You should be querying the database within servlet code (or within a POJO called by s servlet), and then have the servlet pass a JavaBean to the JSP with the results and then use JSTL to apply the results into the JSP.
parni raghuvanshi
Greenhorn
Joined: Jun 21, 2011
Posts: 14
posted
0
sir can you give me some idea about the architecture of a customer tool.................
rich baliyani wrote:sir can you give me some idea about the architecture of a customer tool.................
High level architecture, three-tiered:
+ browser-based UI
+ application server
+ database server
Recommend use of MVC pattern for the application server.
That is as detailed as I am willing to get. Without knowing any of your customer's requirements I cannot get any more detailed.
See also: NotACodeMill