Torna indietro   Hardware Upgrade Forum > Software > Programmazione

Redmi Note 15 Pro+ 5G: autonomia monstre e display luminoso, ma il prezzo è alto
Redmi Note 15 Pro+ 5G: autonomia monstre e display luminoso, ma il prezzo è alto
Xiaomi ha portato sul mercato internazionale la nuova serie Redmi Note, che rappresenta spesso una delle migliori scelte per chi non vuole spendere molto. Il modello 15 Pro+ punta tutto su una batteria capiente e su un ampio display luminoso, sacrificando qualcosa in termini di potenza bruta e velocità di ricarica
HONOR Magic 8 Pro: ecco il primo TOP del 2026! La recensione
HONOR Magic 8 Pro: ecco il primo TOP del 2026! La recensione
HONOR ha finalmente lanciato il suo nuovo flagship: Magic 8 Pro. Lo abbiamo provato a fondo in queste settimane e ve lo raccontiamo nella nostra recensione completa. HONOR rimane fedele alle linee della versione precedente, aggiungendo però un nuovo tasto dedicato all'AI. Ma è al suo interno che c'è la vera rivoluzione grazie al nuovo Snapdragon 8 Elite Gen 5 e alla nuova MagicOS 10
Insta360 Link 2 Pro e 2C Pro: le webcam 4K che ti seguono, anche con gimbal integrata
Insta360 Link 2 Pro e 2C Pro: le webcam 4K che ti seguono, anche con gimbal integrata
Le webcam Insta360 Link 2 Pro e Link 2C Pro sono una proposta di fascia alta per chi cerca qualità 4K e tracciamento automatico del soggetto senza ricorrere a configurazioni complesse. Entrambi i modelli condividono sensore, ottiche e funzionalità audio avanzate, differenziandosi per il sistema di tracciamento: gimbal a due assi sul modello Link 2 Pro, soluzione digitale sul 2C Pro
Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 12-07-2005, 16:25   #1
ermasto
Senior Member
 
L'Avatar di ermasto
 
Iscritto dal: Mar 2004
Messaggi: 581
[jsp]Aiuto Urgente Librerie

ragazzi sto provando a far girare la mia pagina jsp su tomcat solo che mi da sempre questo errore :

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
Only a type can be imported. java.util.Proprietes resolves to a package

An error occurred at line: 94 in the jsp file: /hermann/home2.jsp
Generated servlet error:
st cannot be resolved


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

penso che sia relativo ai package che non importo correttamente infatti l'errore si riferisce alla prima riga. La mia pagina jsp è la seguente:
Codice:
<html>
<head>
<title>LEFRAHER</title>
</head>
<LINK href="style.css" rel=stylesheet>
<script language=javascript>
var popup=null;
function pop_open() {
	popup = window.open('wait.html','aspetta','width=500,height=100');
}
function pop_close() {
	if (popup!=null) { 
	setTimeout('',2000);
	popup.close();
	}
} 
//Le funzioni pop_open e pop_close servono per aprire
//e chiudere la finestra di pop up di attesa connessione

</script>

<%String login=new String();
String passwd=new String();
String logout=new String();
int cliente=0;
int relogin=1;
//la variabile "percorso" viene incrementata ad ogni pagina.
//serve per controllare che l'utente rispetti l'ordine di 
//apertura delle pagine.
session.setAttribute("percorso","0");
try{
login=request.getParameter("login");
passwd=request.getParameter("passwd");
logout=request.getParameter("logout");
}catch(Exception e){%>
<%=e%><%}
//La variabile "logout" serve per conoscere lo stato della sessione.
//Se contiene un valore significa che un utente registrato
//vuole rimuovere la login fatta in precedenza e immetterne un'altra
//o semplicemente eliminare lo sato corrente di utente registrato.
if(logout!=null) if(logout.length()!=0){
    session.removeAttribute("login");
    session.removeAttribute("passwd");
}
String coologin=(String) session.getAttribute("login");
String coopasswd=(String) session.getAttribute("passwd");
//Verifica se la session contiene login e password
if((coologin!=null) && (coopasswd!=null)){
login=coologin;
passwd=coopasswd;
}
if((login!=null) && (passwd!=null)) {
    if((login.length()==0)&&(passwd.length()==0)){ 
    cliente=0;
    session.setAttribute("loginaccettata","0");
    }else{
    cliente=1;
    }
}else{
    cliente=0;
    session.setAttribute("loginaccettata","0");
}

Connection conn = null;
Statement  stmt = null;
ResultSet    rs = null;
final String DB_URL = "jdbc:odbc:database"; //database è il nome del db
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");	    
} 
 catch(java.lang.ClassNotFoundException e)
 {
		             System.out.println("Error");
	   	}
	

	conn = DriverManager.getConnection(DB_URL, "User", "PWD");
	stmt = conn.createStatement();
	
	try
	 {
		      	// richiesta di connessione - ritorna una istanza di connessione 
		       	conn = DriverManager.getConnection(DB_URL, "User", "PWD");
		    	        	
		       	// statement per inviare i comandi al database
		   	stmt = conn.createStatement();		
		   			
	  }
	   catch(SQLException ex)
	   {
		      System.out.println(" Error.");
	   	
%> 	<%
return;}
if(cliente==1){
//Verifica se login e password sono corrette
rs=st.executeQuery("select count(*) as verifica from cliente where login='"+login+"' and password='"+passwd+"';");
    while(rs.next()){
        if(rs.getInt("verifica")<1) {cliente=0; relogin=0;session.setAttribute("loginaccettata","0");
        }else{
        session.setAttribute("loginaccettata","1");
        session.setAttribute("login",login);
        session.setAttribute("passwd",passwd);
        }
    }
}
%>
<body leftmargin=0 topmargin=0 onUnload=pop_close()>

<TABLE WIDTH=867 BORDER=0 CELLPADDING=0 CELLSPACING=0 height="1053">
	<TR>
		<TD colspan="2">
			<IMG SRC="immagini/background_01.jpg" WIDTH=179 HEIGHT=158></TD>
		<TD colspan="2">
			<p align="center">BENVENUTI SU LEFRAHER</p>
			<p align="center">SITO DEDICATO ALLA VENDITA DI CD-DVD-LIBRI</TD>
                <TD width="17">&nbsp;&nbsp;&nbsp;&nbsp;</TD>
<%              if(cliente==0){%>
                <td width="235">
                    <CENTER><h3>LOGIN</H3>
                    <FORM action="index.jsp" method=Post>
                    <table border=0>
                    <tr>
                    <td>User</TD><td><INPUT type=text name=login size=10></td>
                    </tr><tr>
                    <td>Password</TD><td><INPUT type=password name=passwd size=10></td>
                    </tr>
                    <TR><td><input type=reset value='Cancella'></td><TD><input type=submit value='Conferma'></TD></TR>
                    </TABLE>
                    </FORM>
                    <input type=submit value='Cambia Cliente'><p>Per Registrarti 
					clicca qui: <a href="Registrazione.htm">Registra! </a>
                    </p>
                    </CENTER>
                </td>
<%}else{%>
<%}%>
        </TR>
	<TR>
		<TD height="288" width="196">
			SEZIONI PRESENTI:<p>&nbsp;</p>
			<form method="POST" action="_derived/nortbots.htm" webbot-action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit>
				<!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
				<p><img border="0" src="images/cd.gif" width="60" height="45">&nbsp;
				<input type="button" value="CD" name="B3"></p>
			</form>
			<form method="POST" action="_derived/nortbots.htm" webbot-action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit>
				<!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="1"><!--webbot bot="SaveResults" i-checksum="43406" endspan -->
				<p><img border="0" src="images/DVD.gif" width="60" height="57">
				<input type="button" value="DVD" name="B6"></p>
			</form>
			<p><img border="0" src="images/libri.gif" width="55" height="60">
			<input type="button" value="LIBRI" name="B4"></TD>
		<TD height="288" width="6">
			&nbsp;</TD>
		<TD valign=top align=center height="288" width="409"><br>
			<hr>OFFERTA SPECIALE!!!<p>CD</p>
		<p><img border="0" src="images/Bob.jpg" width="70" height="95"></p>
		<p><b>Legend: The Very Best Of (2CD)</b><br>
		di BOB MARLEY<br>
		UNIVERSAL MUSIC - Supporto: CD<br>
		Serie Sound+Vision Deluxe Edition Boxset<br>
		<span class="wn_prezzo">28,99 €</span>&nbsp;&nbsp;&nbsp;
		<a class="autore_scheda" href="http://www.topten.it/index.php?sez=CD&sub=scheda&id=34664">
		Vai alla scheda</a> &nbsp;&nbsp;&nbsp;<a class="wn_prezzo" href="http://www.topten.it/index.php?sez=USR&sub=carrello&azione=aggiungi&id=34664&q=1">BUY</a>
		</p>
		<p>&nbsp;</p>
		<p>DVD</p>
		<p><img border="0" src="images/helsing.jpg" width="72" height="103"></p>
		<p><span class="titolo_scheda">VAN HELSING (2DVD SPECIAL)</span><span class="verd_1"><br>
		<b>Regia:</b>
		<a class="verd_1" href="http://www.topten.it/index.php?sez=DVD&sub=quicksearch&campo=Regia&args=Stephen+Summers">
		Stephen Summers</a><br>
		<b>Anno di emissione:</b> 2005<br>
		<b>Produttore:</b> UNIVERSAL PICTURES ITALY Srl<br>
		<span class="prezzi_scheda">14,99&nbsp;€&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="prezzi_scheda" href="http://www.topten.it/index.php?sez=USR&sub=carrello&azione=aggiungi&id=39914&q=1">BUY</a></span></span>
		</p>
		<p>&nbsp;</p>
		<p>LIBRI</p>
		<p>
		<img border="0" src="images/piu_felici_in_amore_red.jpg" width="71" height="110"></p>
		<p>
		<b>Più Felici in Amore</b><br>
		di <span style="font-weight: 400; letter-spacing: -1pt"><font size="3">
		Claude-Marc Aubry </font></span><br>
		<span style="font-weight: 400; letter-spacing: -1pt"><font size="3">Come 
		costruire una relazione piena e gioiosa giorno per giorno</font></span><br>
		<span class="wn_prezzo">13.00€</span>&nbsp;&nbsp;&nbsp;
		<a class="autore_scheda" href="http://www.topten.it/index.php?sez=CD&sub=scheda&id=34664">
		Vai alla scheda</a> &nbsp;&nbsp;&nbsp;<a class="wn_prezzo" href="http://www.topten.it/index.php?sez=USR&sub=carrello&azione=aggiungi&id=34664&q=1">BUY</a>
		</p>
		<p>&nbsp;</p>
		<p>&nbsp;</td>

		<TD valign=top align=center height="288" width="4">&nbsp;</td>

	</TR>
	<TR>
		<TD width="196">
			&nbsp;</TD>
		<TD width="6">
			&nbsp;</TD>
		<TD valign=top align=center width="409">&nbsp;</td>

		<TD valign=top align=center width="4">&nbsp;</td>

	</TR>
</TABLE>
</body>
</html>
Chi gentilmente mi dice cosa modificare della mia pagina affinche venga compilata??
ermasto è offline   Rispondi citando il messaggio o parte di esso
 Rispondi


Redmi Note 15 Pro+ 5G: autonomia monstre e display luminoso, ma il prezzo è alto Redmi Note 15 Pro+ 5G: autonomia monstre e displ...
HONOR Magic 8 Pro: ecco il primo TOP del 2026! La recensione HONOR Magic 8 Pro: ecco il primo TOP del 2026! L...
Insta360 Link 2 Pro e 2C Pro: le webcam 4K che ti seguono, anche con gimbal integrata Insta360 Link 2 Pro e 2C Pro: le webcam 4K che t...
Motorola edge 70: lo smartphone ultrasottile che non rinuncia a batteria e concretezza Motorola edge 70: lo smartphone ultrasottile che...
Display, mini PC, periferiche e networking: le novità ASUS al CES 2026 Display, mini PC, periferiche e networking: le n...
La nave elettrica più grande mai ...
Spusu lancia il Wi-Fi Calling: come funz...
Questo robot impara a muovere le labbra ...
iPhone 17 annienta la concorrenza in Cin...
La nuova Xiaomi SU7 batte un record: 4.2...
È possibile copiare i qubit: dei ...
BYD alza ulteriormente l'asticella: batt...
Il nuovo razzo spaziale riutilizzabile c...
L'ex leader di Assassin's Creed porta Ub...
Il razzo spaziale NASA SLS e la capsula ...
Samsung Galaxy S26 Ultra: quattro colora...
AWS investe 1,2 miliardi in Italia. Coin...
La navicella cinese Shenzhou-20 con il f...
I piani Business ed Education di Google ...
Ceres-2 e Lunga Marcia 3B: la Cina falli...
Chromium
GPU-Z
OCCT
LibreOffice Portable
Opera One Portable
Opera One 106
CCleaner Portable
CCleaner Standard
Cpu-Z
Driver NVIDIA GeForce 546.65 WHQL
SmartFTP
Trillian
Google Chrome Portable
Google Chrome 120
VirtualBox
Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB è On
Le Faccine sono On
Il codice [IMG] è On
Il codice HTML è Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 04:18.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Served by www3v