ciao a tutti.. io sto creando per la mia tesina un sito scritto in jsp per formulare budget e scostamenti..
Sistema operativo -> seven
Ho installato xampp e ho creato il mio database con mysql.. i servizi sono tutti attivi (mysql, apache, tomcat, ecc).. però quando vado a richiamare la mia pagina jsp mi viee visualizzato il codice.. Quale può essere il problema?
Se può essere utile posto qui di seguito il codice:

codice:
<%@ page import="java.sql.*" %>

	<%        
        String connectionURL="jdbc:mysql://localhost:3306/mydb";
        Connection connection=null;
        Statement statement=null;
        ResultSet rs=null;

        try
                {Class.forName("com.mysql.jdbc.Driver").newInstance();
                 connection=DriverManager.getConnection(connectionURL,"root","root");

                 statement=connection.createStatement();

                 String istruzioneSQL= "SELECT nome, cognome FROM imprese";

                 rs=statement.executeQuery(istruzioneSQL);
                 }
        catch (Exception ex)
                {System.out.println("SQLException: "+ex.getMessage());
                }
	%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<title>ELENCO IMPIEGATI</title>
</head>

<body>
    <table width="200" cellspacing="4" cellpadding="3">
    <tr style="font-weight:bold; background-color:#CCCCCC">
    
    <td>nome</td>
    <td>cognome</td>

    </tr>

        <%
    while(rs.next())
        {
        %>
        <tr style="font-size:11px; font-family:verdana; background-color:#EDEDEB" align="center">
            <td><% out.println(rs.getString("nome")); %></td>
            <td><% out.println(rs.getString("cognome")); %></td>
        </tr>
        <%
        }

rs.close();
statement.close();
connection.close();
%>

</table>
Spero possiate aiutarmi.. grazie