Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

nhlanhla mazibuko

Greenhorn
+ Follow
since Mar 28, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by nhlanhla mazibuko

hey i have this class or errors on my mv machine,

how do i solve this


java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:425)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
13 years ago
This my jsp page, that i want connect it with the database.
this is a code.
help me.

<%
Connection conn = null;
ResultSet result = null;
Statement stt = null;

try {
Class c = Class.forName("sun.jdbc.knotiondb.JdbcOdbcDriver");
}
catch (Exception e) {
System.out.println("Error occurred " + e);
}
try {
conn = DriverManager.getConnection("knotiondbc:mysql://locahost:3306/knotiondb","nhla123","nhlapass");
}
catch (SQLException e) {
System.out.println("Error found " + e);
}
try {
stt = conn.createStatement();
result = stt.executeQuery("MySQL Query * localhost:3306/knotionbd");
}
catch (SQLException e) {
System.out.println("Error occurred " + e);
}
%>

Hi,
please you help me, i want to connect a jsp with the mysql databse
how do i go about doing that.

please help.
nhlanhla
Hi i have a problem I can't activate my login button please help me.

Nhlanhla
13 years ago
JSP
What dose this information mean? to my database connection

org.apache.jasper.JasperException: An exception occurred processing JSP page /databaseconnectionjsp.jsp at line 33

30: System.out.println("Error occurred " + e);
31: }
32: try {
33: stmt = conn.prepareStatement("SELECT * http://localhost:8080/knotionproject/databaseconnectionjsp.jsp=");
34: stmt.setString(1, "nhla123");
35: result = stmt.executeQuery();
36: stmt.close();

Hi there.
Please can you help me with the code that i can use to connect mysql database and a jsp page
please

Nhlanhla
I want to activate my submit button
in such a way that when i click submit, it can take me to the next page.
please help me.

nhlanhla
hi,
Please could one of you guys help me with my problem,
I have two jsp page that i want to link the together, form page one to page two.
pleas e can yo help me with the link tags that i can use to link these two pages.

nhlanhla
13 years ago
JSP
Hi, There

please can you help me with

why does there compiler looks only at the reference type, not the instance type :roll:
Hi

What is to propagate.
Hi there

please can you tell me what does this mean:

Exceptions propagate up through the lexical block structure of java method, and then up the Method call stack.
Hi there,

please tell me, why static methods can't be overridden.
Hi, there

Why do you we have to use the reference variables to access there static variable.
Hi again

please tell me more about there instance of keyword
Hi, there Good people,

please you help me with
what is runtime error,
what is complier error,
what is exception error






[BSouther: added a meaningful subject line]
[ March 28, 2008: Message edited by: Ben Souther ]