02.06.2013 Views

Thesis full text PDF - Politecnico di Milano

Thesis full text PDF - Politecnico di Milano

Thesis full text PDF - Politecnico di Milano

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3 MODELLAZIONI 3.8 Formato XML per le applicazioni.<br />

generazione dello struts-config,delle action form e delle action.<br />

Si parte descrivendo le form; esse contengono i dati che saranno poi utilizzati delle jsp per<br />

raccogliere i dati dall’utente, nonché e per definire dati per lo struts-config (le action-mappings)<br />

e le action form.<br />

Si prosegue con la <strong>di</strong>chiarazione delle variabili usate sia dalle action form per raccogliere<br />

i dati utente, sia dalle action per le successive elaborazioni. Si passa poi alla definizione <strong>di</strong><br />

chiamate sql (select o update) se l’unità prevede <strong>di</strong>aloghi col database. Infine, si descrivono i<br />

possibili forward, definiti tramite re<strong>di</strong>rezioni alle pagine jsp.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

select matricola,nome,cognome,<br />

facolta,me<strong>di</strong>a from stu where me<strong>di</strong>a =’" +search+ "’ order by matricola<br />

<br />

<br />

<br />

<br />

INSERT INTO STU VALUES (’"+ mt + "’ , ’"+ no + "’ ,<br />

’"+ co + "’ , ’"+ fa + "’ , ’"+ me + "’); <br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!