|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#21 |
|
Senior Member
Iscritto dal: Mar 2004
Città: castel san giorgio(salerno)
Messaggi: 1218
|
Comunque sto capendo jDom.
L'unico problema è che devo usare la classe XmlDocument per scrivere in un file. Ho fatto l'import com.sun.xml.tree.XmlDocument ma non me la trova, come faccio? |
|
|
|
|
|
#22 |
|
Senior Member
Iscritto dal: Mar 2004
Città: castel san giorgio(salerno)
Messaggi: 1218
|
Risolto il problema mi si è ripresentato un altro problema.
Ho creato una servlet: Codice:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class RicercaProdotto extends HttpServlet {
public void doGet (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
GestioneDB cerca = new GestioneDB();
prodotto p = cerca.cercaProdotto(request.getParameter("marca"), request.getParameter("modello"));
gotoPage("/visualizza_prodotto.jsp?p",request,response);
}
private void gotoPage( String address,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher(address);
dispatcher.forward(request,response);
}
}
Codice:
<HTML><HEAD><TITLE>BENVENUTO</TITLE></HEAD>
<BODY BGCOLOR="white">
<% prodotto p = request.getParameter("p");
out.println(p.getCategoria());
%>
</BODY>
</HTML>
E:\Programmi\Apache Software Foundation\Tomcat 5.5\webapps\esercizio\WEB-INF\classes ma continua a darmi errore "HTTP Status 404 - /visualizza_prodotto.jsp" "description The requested resource (/visualizza_prodotto.jsp) is not available." Ho notato che sotto E:\Programmi\Apache Software Foundation\Tomcat 5.5\webapps\esercizio\work\org\apache\jsp sono stati creati dei file nome_jsp e nome_jsp.class per ogni jsp chiamata nome. Non so come le ho create. Comunque sono hsp raggiungibili da se,plici link e non dopo l'elaborazione di una servlet Mi sa che dovrei creare sotto la cartella org/apache/jsp questi file anche per la jsp visualizza_prodotto, ma come faccio? |
|
|
|
|
|
#23 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Naples
Messaggi: 3903
|
Com'è andata la prova?Stamattina ero a Fisciano ma ho visto pochi all'appello....postaci le tracce
__________________
Cancellato stare lucido dal mio vocabolario -Speaker Cenzou- |
|
|
|
|
|
#24 |
|
Senior Member
Iscritto dal: Mar 2004
Città: castel san giorgio(salerno)
Messaggi: 1218
|
Il tempo era poco.
E ha messo una traccia un po intricata da capire all'inizio. Comunque la prova era alle 15:00. Se stavi di mattina come hai fatto a vedere il numero di presenti all'appello? |
|
|
|
|
|
#25 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Naples
Messaggi: 3903
|
nel senso che sono venuto di mattina.....mi son fumato una sigaretta fuori facendo il giro delle aule x curiosare dalle finestre
__________________
Cancellato stare lucido dal mio vocabolario -Speaker Cenzou- |
|
|
|
|
|
#26 |
|
Senior Member
Iscritto dal: Mar 2004
Città: castel san giorgio(salerno)
Messaggi: 1218
|
Si ma l'appello era alle 15:00, non di mattina.
|
|
|
|
|
|
#27 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Naples
Messaggi: 3903
|
boysna e mammamia e comm stai
![]() mattina...pomeriggio...e c'ammà fà nu dibbattito mò?
__________________
Cancellato stare lucido dal mio vocabolario -Speaker Cenzou- |
|
|
|
|
|
#28 |
|
Senior Member
Iscritto dal: Mar 2004
Città: castel san giorgio(salerno)
Messaggi: 1218
|
Se la mattina fosse pomeriggio... non so cosa accadrebbe.
Comunque era curiosità... |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 08:26.



















