Click here to Skip to main content
15,892,199 members
Home / Discussions / Web Development
   

Web Development

 
QuestionRetreive data from ms access and display in web browser Pin
Kanel Roath12-Jul-10 17:11
Kanel Roath12-Jul-10 17:11 
AnswerRe: Retreive data from ms access and display in web browser Pin
Peace ON12-Jul-10 19:13
Peace ON12-Jul-10 19:13 
GeneralRe: Retreive data from ms access and display in web browser Pin
Kanel Roath12-Jul-10 20:36
Kanel Roath12-Jul-10 20:36 
AnswerRe: Retreive data from ms access and display in web browser Pin
Peace ON12-Jul-10 21:09
Peace ON12-Jul-10 21:09 
AnswerRe: Retreive data from ms access and display in web browser Pin
T M Gray13-Jul-10 5:33
T M Gray13-Jul-10 5:33 
QuestionAccesing SQL DB from servlet ... Class error [modified] Pin
khurram_shahzad12-Jul-10 2:29
khurram_shahzad12-Jul-10 2:29 
AnswerRe: Accesing SQL DB from servlet ... Class error Pin
Richard MacCutchan12-Jul-10 7:17
mveRichard MacCutchan12-Jul-10 7:17 
GeneralRe: Accesing SQL DB from servlet ... Class error Pin
khurram_shahzad12-Jul-10 8:13
khurram_shahzad12-Jul-10 8:13 
No its just this little exception ("Exception: com.mysql.jdbc.Driver") message only .... i think class may not found ...but i dodnt know why .. because in other example i include class library (import java.sql.DriverManager) but here's again same excaption message.

I'vs this example also,

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author KHURRAM SHAHZAD
 */
public class getDataServlet extends HttpServlet {
    @Override
    public void doGet(HttpServletRequest hsReq, HttpServletResponse hsRes) throws ServletException, IOException {
        hsRes.setContentType("text/html");
        PrintWriter objPrintWriter = hsRes.getWriter();

        String conURL = "jdbc:H:\\employee";
        
        Connection connection=null;
        try{
            Class.forName("com.mysql.jdbc.Driver").newInstance();
            /*connection = DriverManager.getConnection(conURL);          //i've comment out this area for testing/debuging
            Statement st = connection.createStatement();
            ResultSet rs = st.executeQuery("Select * from emp_sal");
            while(rs.next()){
                objPrintWriter.println("EmpName" + "   " + "EmpSalary" + "<br>");
                objPrintWriter.println(rs.getString(1) + "   " + rs.getString(2) + "<br>");
            }*/
        }
        catch (Exception e){
            objPrintWriter.println(e);
        }
     }
}


in this program it will show this message little change but seems.
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
GeneralRe: Accesing SQL DB from servlet ... Class error Pin
Richard MacCutchan12-Jul-10 8:55
mveRichard MacCutchan12-Jul-10 8:55 
QuestionCSS Three Column Layout - Column Height Problem Pin
Uros Calakovic10-Jul-10 8:04
Uros Calakovic10-Jul-10 8:04 
AnswerRe: CSS Three Column Layout - Column Height Problem Pin
NeverHeardOfMe10-Jul-10 22:49
NeverHeardOfMe10-Jul-10 22:49 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
Uros Calakovic11-Jul-10 0:13
Uros Calakovic11-Jul-10 0:13 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
Uros Calakovic11-Jul-10 1:01
Uros Calakovic11-Jul-10 1:01 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
NeverHeardOfMe11-Jul-10 3:51
NeverHeardOfMe11-Jul-10 3:51 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
Uros Calakovic11-Jul-10 8:04
Uros Calakovic11-Jul-10 8:04 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
NeverHeardOfMe11-Jul-10 8:11
NeverHeardOfMe11-Jul-10 8:11 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
Uros Calakovic11-Jul-10 8:32
Uros Calakovic11-Jul-10 8:32 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
NeverHeardOfMe11-Jul-10 12:15
NeverHeardOfMe11-Jul-10 12:15 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
Uros Calakovic11-Jul-10 8:50
Uros Calakovic11-Jul-10 8:50 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
NeverHeardOfMe11-Jul-10 21:53
NeverHeardOfMe11-Jul-10 21:53 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
Dalek Dave11-Jul-10 22:45
professionalDalek Dave11-Jul-10 22:45 
GeneralRe: CSS Three Column Layout - Column Height Problem Pin
Martin Jarvis12-Jul-10 8:29
Martin Jarvis12-Jul-10 8:29 
QuestionHow to generate a file from base64 binary stream tusing java script Pin
Gokul_md9-Jul-10 23:44
Gokul_md9-Jul-10 23:44 
AnswerRe: How to generate a file from base64 binary stream tusing java script Pin
Martin Jarvis12-Jul-10 8:33
Martin Jarvis12-Jul-10 8:33 
QuestionAjax and Postbacks Pin
swjam9-Jul-10 16:34
swjam9-Jul-10 16:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.