Vorrei semplicemente fare delle prove in jsp, e vedere come usare delle classi...
cmq il codice html è questo:
Codice PHP:
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.util.*" errorPage="" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>Test CLASSE</title>
</
head>

<
body>

<
jsp:useBean id="user" class="InfoUser" scope="session" />

</
body>
</
html
Quindi per la classe "InfoUser" ho usato NetBeans ho creato un nuovo progetto ho compilato la classe ed ho preso il file .class e l'ho inserito nella cartella "/TestJSP" che sta in "webapps"....
In Netbeans quando ho creato la classe "lui" in automatico ha dichiarato che la classe fa parte di un package "infouser".
Spero di essere stato chiaro , così da poter ricevere un buon aiuto, a quello che ho combinato.
Grazie