Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Reti di calcolatori > [comdig-prini]WebSever
Pages (10): « First ... « 4 5 6 7 [8] 9 10 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Mattex185
.grande:maestro.

User info:
Registered: Sep 2004
Posts: 520 (0.07 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Laureato
Time Online: 11 Days, 3:18:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by EmoGuy
Errori in comprensibili ....
Parte B dove dice //Construct the response message :
String statusLine = null; dice " identifier expected "
L' if subito sotto :
if ( fileExists) " illegal start of type "

os.writeBytes(statusLine); "identifier expected "

Inizio a dare segni di squilibrio ....
.
anche a me lo dava.quando ho finito la parte B nn me lo ha dato +
anche x un altro(ma nn ricordo quale) mi dava lo stesso errore e anche quello è andao a posto a programma finito

12-12-2005 13:14
Click Here to See the Profile for Mattex185 Click here to Send Mattex185 a Private Message Find more posts by Mattex185 Add Mattex185 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusa mettx ma nella classe inputstream devi fare riferimento alla connection di socket della classe webserver...come hai fatto?

12-12-2005 13:15
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

a volte mi accorgo di dire una cifra di c****te! cmq la prima parte sembra funzionare ancora nn ci credo!

mi ridà questa stringa...
GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
java.io.IOException: Stream closed
perchè mi chiude la connessione?

12-12-2005 13:26
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Mattex185
.grande:maestro.

User info:
Registered: Sep 2004
Posts: 520 (0.07 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Laureato
Time Online: 11 Days, 3:18:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nn so se ho capito il punto ma cmq ho fatto "semplicemente"
socket.getInputStream()

x la risposta del prompt nn so dirti

12-12-2005 13:28
Click Here to See the Profile for Mattex185 Click here to Send Mattex185 a Private Message Find more posts by Mattex185 Add Mattex185 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
EmoGuy
.simpatizzante.

User info:
Registered: Oct 2005
Posts: 11 (0.00 al dì)
Location: Garbagnate Milanese
Corso: Comunicazione digitale
Anno: Terzo
Time Online: 5:47:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io no, ma forse ho sbagliato a completare, l' ho scritta semplice semplice come si è visto a laboratorio; alla stessa maniera DataOutputStream e bufferedReader;
A me da errore su tokens.nextToken(); dicendo che " identifier expected " e su fileName = "." + fileName; il motivo è sempre " identifier expected "

12-12-2005 13:29
Click Here to See the Profile for EmoGuy Click here to Send EmoGuy a Private Message Find more posts by EmoGuy Add EmoGuy to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusa...ma inputstream is= ?
come lo inizializzi?
ioho fatto new inputstream bla bla bla ma mi dice che è un aclasse astratta e nn lo posso fare

12-12-2005 13:30
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Mattex185
.grande:maestro.

User info:
Registered: Sep 2004
Posts: 520 (0.07 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Laureato
Time Online: 11 Days, 3:18:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nell'inputstream nn ho fatto new io
solo
InputStream is = socket.getInputStream();

12-12-2005 13:32
Click Here to See the Profile for Mattex185 Click here to Send Mattex185 a Private Message Find more posts by Mattex185 Add Mattex185 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

mattex quasi ti amo!!!
cmq continua a darmi sta roba
GET /prova.htm HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
java.io.IOException: Stream closed
Finished executing

12-12-2005 13:36
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Mattex185
.grande:maestro.

User info:
Registered: Sep 2004
Posts: 520 (0.07 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Laureato
Time Online: 11 Days, 3:18:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nn mi ricordo davvero se sia la risposta giusta...tu vai avanti e poi vedi ;) intanto provo a rivedere se mi da quello ma nn so se ci riesco

12-12-2005 13:55
Click Here to See the Profile for Mattex185 Click here to Send Mattex185 a Private Message Find more posts by Mattex185 Add Mattex185 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
supernova
Mad For It

User info:
Registered: May 2003
Posts: 403 (0.05 al dì)
Location: Milan, London
Corso: Digital Comunication
Anno: I Don't Know, Not Yet.
Time Online: 3 Days, 4:56:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

public final class WebServer {

public static void main(String argv[]) throws Exception
{
// Set the port number.
int port = 6789;

// Establish the listen socket.
ServerSocket s = new ServerSocket(port);
// Process HTTP service requests in an infinite loop.
while (true) {
// Listen for a TCP connection request.
Socket w = s.accept();
// Construct an object to process the HTTP request message.
HttpRequest request = new HttpRequest(w);
// Create a new thread to process the request.
Thread thread = new Thread(request);
// Start the thread.
thread.start();

}
}

Ora mi dite per piacere perchè mi da errore di compilazione nel metodo HttpRequest? A me sembra tutto ok!

__________________
" So I Start The Revolution From My Bed ". Noel Gallagher

12-12-2005 14:01
Click Here to See the Profile for supernova Click here to Send supernova a Private Message Find more posts by supernova Add supernova to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

guarda che non puoi scrivere codice o parte di codice di un elaborato....! cmq posta l'errore che ti da!

domanda: la parte b implementa l meodo run di httprequest?

12-12-2005 14:03
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
supernova
Mad For It

User info:
Registered: May 2003
Posts: 403 (0.05 al dì)
Location: Milan, London
Corso: Digital Comunication
Anno: I Don't Know, Not Yet.
Time Online: 3 Days, 4:56:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Pinauz questa parte mi sembra che si stata implementata da tutti quindi non vedo problemi a postarla. Cmq scusate ma è da venerdi che sto sclerando con sto errore: WebServer.java:20: non-static variable this cannot be referenced from a static context
HttpRequest request = new HttpRequest(w);

Di grazia cos'è che non va?

__________________
" So I Start The Revolution From My Bed ". Noel Gallagher

12-12-2005 14:06
Click Here to See the Profile for supernova Click here to Send supernova a Private Message Find more posts by supernova Add supernova to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

la classe http request come l'hai dichiarata? final static public....

12-12-2005 14:08
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
supernova
Mad For It

User info:
Registered: May 2003
Posts: 403 (0.05 al dì)
Location: Milan, London
Corso: Digital Comunication
Anno: I Don't Know, Not Yet.
Time Online: 3 Days, 4:56:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

come da pdf.

__________________
" So I Start The Revolution From My Bed ". Noel Gallagher

12-12-2005 14:09
Click Here to See the Profile for supernova Click here to Send supernova a Private Message Find more posts by supernova Add supernova to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pinauz
.grande:maestro.

User info:
Registered: Nov 2004
Posts: 734 (0.10 al dì)
Location: a casa mai
Corso: NO: la nostra risposta al vostro calcio
Anno: !!!!!!!
Time Online: 3 Days, 17:43:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

final class HttpRequest implements Runnable? boh...a me nn da errore

__________________
movimento ultras contro diffide e repressione

12-12-2005 14:12
Click Here to See the Profile for pinauz Click here to Send pinauz a Private Message Find more posts by pinauz Add pinauz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 10:56.    Post New Thread    Post A Reply
Pages (10): « First ... « 4 5 6 7 [8] 9 10 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.086 seconds (71.16% PHP - 28.84% MySQL) con 26 query.