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 G - M > Gestione dell'informazione nei sistemi mobili e pervasivi > Progect fault!!!
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Pma
.amico.

User info:
Registered: Dec 2004
Posts: 33 (0.00 al dì)
Location: Bianzone
Corso: Informatica per le Telecomunicazioni
Anno: 3 e lode
Time Online: 7:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Progect fault!!!

Ciao a tutti,
per caso qualcuno sa cosa succederebbe se il progetto vinisse consegnato con java incompleto??
Io sono riuscito a fare la parte html e wml... per quanto riguarda java sono a poco meno di metà.

Qualcuno ha già provato a consegnare un progetto incompleto??
Grazie mille..

29-01-2008 10:57
Click Here to See the Profile for Pma Click here to Send Pma a Private Message Find more posts by Pma Add Pma to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
biett0
.arcimaestro.

User info:
Registered: May 2007
Posts: 383 (0.06 al dì)
Location: Milano - Lago di Garda
Corso: Info. Telecom.
Anno: on the road
Time Online: 1 Day, 15:56:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Progect fault!!!

Originally posted by Pma
Ciao a tutti,
per caso qualcuno sa cosa succederebbe se il progetto vinisse consegnato con java incompleto??
Io sono riuscito a fare la parte html e wml... per quanto riguarda java sono a poco meno di metà.

Qualcuno ha già provato a consegnare un progetto incompleto??
Grazie mille..


No scusa ma che caxxo di domanda è?! Siamo all'università e tantopiù che questo è un corso complementare... hai pure il coraggio di consegnarlo incompleto?! :shock:
Io conosco pochissimo java, ma mi sto sbattendo di google e libri sull'argomento x cercare di finirlo, oltretutto puoi riciclare abbondantemente il codice del proff.

__________________
The Doors - Waiting 4 the sun
At first flash of Eden, We race down to the sea. Standing there on freedom's shore...
Can't you feel it, now that spring has come? That it's time to live In the scattered sun. Waiting for the sun...

29-01-2008 11:58
Click Here to See the Profile for biett0 Click here to Send biett0 a Private Message Find more posts by biett0 Add biett0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pma
.amico.

User info:
Registered: Dec 2004
Posts: 33 (0.00 al dì)
Location: Bianzone
Corso: Informatica per le Telecomunicazioni
Anno: 3 e lode
Time Online: 7:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusa se ho offeso la tua sensibilità di studente ma lavoro sto facendo un tirocinio devo preparare tre esami e vorrei laurearmi a luglio...

La motivazione principale per cui non vorrei completare java è che ho poco tempo e la programmazione ad oggetti non mi è particolarmente congeniale... sono più affezionato al C...

Cmq evita pure di ritenerti obbligato a rispondere solo per "criticare" gratuitamente.... senza contare che per "riciclare" codice senza capirlo beh... preferisco evitare...

Da quanto ho capito anche tu stai facendo il progetto... il mio problema è passare il file XML alla midlet... e quando ho seguito il corso mi sembra non fosse stato spiegato... (non ho seguito il corso di quest'anno ma l'anno scorso e la parte java era molto più semplice).

Se puoi darmi qualche consiglio sarebbe ovviamente ben accetto.

Grazie comunque.

29-01-2008 14:36
Click Here to See the Profile for Pma Click here to Send Pma a Private Message Find more posts by Pma Add Pma to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
biett0
.arcimaestro.

User info:
Registered: May 2007
Posts: 383 (0.06 al dì)
Location: Milano - Lago di Garda
Corso: Info. Telecom.
Anno: on the road
Time Online: 1 Day, 15:56:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non voleva essere il alcun modo una critica, lo so che l'anno scorso era più semplice. Xò sarebbe più sensato postare delle domande mirate e vedere se qualcuno ti risponde.

Per il parsing dell'XML puoi riadattare il codice di Riboni relativo al codice sulle news/RSS che, se non ricordo male, l'ha implementato sia con DOM che con SAX. Per quanto riguarda la parte smart-client è molto consigliato (se non addirittura un MUST) usare SAX xkè è più leggero.

__________________
The Doors - Waiting 4 the sun
At first flash of Eden, We race down to the sea. Standing there on freedom's shore...
Can't you feel it, now that spring has come? That it's time to live In the scattered sun. Waiting for the sun...

30-01-2008 16:51
Click Here to See the Profile for biett0 Click here to Send biett0 a Private Message Find more posts by biett0 Add biett0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pma
.amico.

User info:
Registered: Dec 2004
Posts: 33 (0.00 al dì)
Location: Bianzone
Corso: Informatica per le Telecomunicazioni
Anno: 3 e lode
Time Online: 7:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

In realtà il mio problema non è il parsing dell'xml... ma è proprio ottenere l'xml...

Da quanto ho capito la midlet deve richiamare una pagina php che genera il file xml (lato server) che termina con una
"echo $documento_XML"

Così otterrei una stringa nella midlet che contiene l'intero file xml.

Un altro problema che non riesco a risolvere è la modifica di una variabile dichiarata come "public static"... in teoria dovrebbe essere visibile da qualsiasi classe ma di fatto se la modifico dalla funzione che effettua la connessione http questa perde il suo valore e resta a null.

Il problema è che sto perdendo diversi giorni di lavoro non per fare il parsing dell'xml bensì ad ottenere il file xml... senza contare che non sono nemmeno sicuro che la procedura java - php - java si realmente corretta.

Se non risolvo il problema scriverò i metodi per il parsing dell'xml e presenterò la midlet divisa in 2 parti che purtroppo non riesco a collegare... so che è incompleto ma a sto punto vorrei solo verbalizzare...

30-01-2008 23:09
Click Here to See the Profile for Pma Click here to Send Pma a Private Message Find more posts by Pma Add Pma to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
biett0
.arcimaestro.

User info:
Registered: May 2007
Posts: 383 (0.06 al dì)
Location: Milano - Lago di Garda
Corso: Info. Telecom.
Anno: on the road
Time Online: 1 Day, 15:56:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pma
Da quanto ho capito la midlet deve richiamare una pagina php che genera il file xml (lato server) che termina con una
"echo $documento_XML"


Allora... innanzitutto se hai già pronta la pagina php che genera l'xml, puoi invocarlo dal browser passandogli dei parametri fittizi: es http://localhost/Mobile/midlet.php?categoria=hotel
per vedere che crea correttamente l'xml.

L'integrazione con la midlet jme avviene per mezzo delle classi HttpDownloaderThread/Listener già pronte all'uso e fornite dal proff fra i sorgenti.

__________________
The Doors - Waiting 4 the sun
At first flash of Eden, We race down to the sea. Standing there on freedom's shore...
Can't you feel it, now that spring has come? That it's time to live In the scattered sun. Waiting for the sun...

31-01-2008 11:31
Click Here to See the Profile for biett0 Click here to Send biett0 a Private Message Find more posts by biett0 Add biett0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pma
.amico.

User info:
Registered: Dec 2004
Posts: 33 (0.00 al dì)
Location: Bianzone
Corso: Informatica per le Telecomunicazioni
Anno: 3 e lode
Time Online: 7:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by biett0
[...] se hai già pronta la pagina php che genera l'xml [...]


Posto che la pagina php generi l'xml correttamente arriverei ad avere il documento xml in una variabile, mettiamo $dom_document...

In tal caso per passare effettivamente i dati dovei terminarla con una "echo $dom_document" in modo che richiamandola dalla midlet effettuerei il download di tale stringa passata dalla echo (o dalla print).

Questo è ciò che sto cercando di fare... anche se non sono sicuro che sia corretta la parte della echo...

31-01-2008 13:21
Click Here to See the Profile for Pma Click here to Send Pma a Private Message Find more posts by Pma Add Pma to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
biett0
.arcimaestro.

User info:
Registered: May 2007
Posts: 383 (0.06 al dì)
Location: Milano - Lago di Garda
Corso: Info. Telecom.
Anno: on the road
Time Online: 1 Day, 15:56:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pma
Posto che la pagina php generi l'xml correttamente arriverei ad avere il documento xml in una variabile, mettiamo $dom_document...

In tal caso per passare effettivamente i dati dovei terminarla con una "echo $dom_document" [...]


E proprio lì sta il problema: io ho provato a fare una echo $dom_document ma nè mi genera l'xml a video, nè la midlet funziona. Prova con una echo $dom_document->saveXML(), e soprattutto prova a passare direttamente dal browser alla pagina php dei paramentri, x vedere se il tutto funza..

__________________
The Doors - Waiting 4 the sun
At first flash of Eden, We race down to the sea. Standing there on freedom's shore...
Can't you feel it, now that spring has come? That it's time to live In the scattered sun. Waiting for the sun...

01-02-2008 11:36
Click Here to See the Profile for biett0 Click here to Send biett0 a Private Message Find more posts by biett0 Add biett0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
biett0
.arcimaestro.

User info:
Registered: May 2007
Posts: 383 (0.06 al dì)
Location: Milano - Lago di Garda
Corso: Info. Telecom.
Anno: on the road
Time Online: 1 Day, 15:56:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

I moltissimo che leggono/hanno letto questo post (ormai >100), potrebbero contribuire in qualche modo... :evil:

__________________
The Doors - Waiting 4 the sun
At first flash of Eden, We race down to the sea. Standing there on freedom's shore...
Can't you feel it, now that spring has come? That it's time to live In the scattered sun. Waiting for the sun...

01-02-2008 13:41
Click Here to See the Profile for biett0 Click here to Send biett0 a Private Message Find more posts by biett0 Add biett0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 11:45.    Post New Thread    Post A Reply
  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.067 seconds (68.81% PHP - 31.19% MySQL) con 26 query.