| Home  | Casa  | Hardware  | Networking  | Programmazione  | Software  | Domanda  | Sistemi  |   
Programmazione  
  • C /C + + Programming

  • Computer Programming Languages

  • Delphi Programming

  • Java Programming

  • Programmazione Javascript

  • PHP /MySQL Programmazione

  • Perl Programming

  • Python Programming

  • rubino Programmazione

  • Nozioni di base di Visual Programming
  •  
    Conoscenza Informatica >> Programmazione >> PHP /MySQL Programmazione >> Content
    Come collegare GoDaddy Java per MySQL
    tecnologia Java consente devlopers Web e ingegneri del software creare pagine Web dinamiche in XML , HTML e Java utilizzando le JavaServer Pages o JSP , tecnologia . Gli abbonati di GoDaddy servizi di hosting possono collegare le loro pagine Web JSP ad un database MySQL utilizzando il codice corretto . Un database MySQL è tenuto a fornire i dati dinamici utilizzati nelle pagine di Java. Istruzioni
    1

    Accedi al tuo GoDaddy web hosting account usando un client FTP .
    2

    Copia e incolla il file JSP desiderato dalla lista dei file disponibili per il vostro desktop .
    3

    Fare clic su " Start", " Tutti i programmi " e selezionare " Blocco note ".
    4

    Fare clic su " File" e selezionare " Apri. " Selezionare il file JSP è copiato sul desktop e fare clic su "Apri".
    5

    Copia e incolla il seguente codice nel corpo del file JSP tra il e < /body> :

    < % @ page contentType = "text /html ; charset = iso-8859- 1" language = importazione "java " = " . java.sql * " errorPage = " " ; % > Untitled Document < /title> < meta http-equiv = contenuto "Content-Type " = "text /html ; charset = iso - 8859-1 " ; > < /head> <body> <h1> GDtest < /h1 > < % String url = " jdbc: mysql :/Server /mysql : 3306/databasename " ; utente String = " " ; String passaggio = " " ; try { Class.forName ( " com.mysql.jdbc.Driver " ) newInstance ( ) . Connection conn = DriverManager.getConnection ( url , utente , passare ) ; Dichiarazione stmt = conn . createStatement (); ResultSet rs = stmt.executeQuery ( " mysql statment " ) ; <br> <p> mentre ( rs.next ( ) ) { % > <table> tr td < % = rs.getString ( " fname " ) % > < /td > <td> < % = rs.getString ( " lname " ) % > < /td > < /tr> < ;/table> < % } rs.close (); Conn.Close (); } catch ( Exception e) { out.println ( e.toString ( ) );} %> <br> 6 < p > Fare clic su " File" e poi su "Salva ". <br> 7 <p> caricare il file sul tuo GoDaddy web hosting account usando un client FTP . <br> < br > <div class=ad2><script language='javascript' src='/ad/201310/4.js'></script></div> </div> </td> </tr> </table> <table width="95%" height="1" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DEE7EE"> <tr> <td></td> </tr> </table> <table width="100%" height="7" border="0" cellpadding="0" cellspacing="0"> <tr> <td></td> </tr> </table> <table width="91%" height="52" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="51%"><p>Previous : <a class='LinkPrevArticle' href='/Programmazione/php-mysql-programming/91435.html' >Come connettersi a MySQL Ajax </a></li></p></td> </tr> <tr> <td width="49%"> next : <a class='LinkNextArticle' href='/Programmazione/php-mysql-programming/91437.html' >Il debug di una funzione Pipelined in Oracle </a></li></td> </tr> </table></td> </tr> </table> <table width="100%" height="7" border="0" cellpadding="0" cellspacing="0"> <tr> <td></td> </tr> </table> <table width="770" height="246" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="375" height="246" valign="top"><table width="380" border="0" cellpadding="0" cellspacing="0" class="bian"> <tr> <td height="244" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="img_dm/danmai_r4_c04 -.jpg" bgcolor="#DBE3EE"> <tr> <td width="4%" height="29"> </td> <td width="96%" class="lan_lm"> Articoli Correlati </td> </tr> </table> <table width="95%" height="209" border="0" align="center" cellpadding="0" cellspacing="4"> <tr> <td height="201"><table width="100%" cellpadding="0" cellspacing="0"><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/92352.html" title="Come sbarazzarsi di duplicati in MySQL " target="_self">Come sbarazzarsi di duplicati in MySQL </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/91444.html" title="Uscita di strani personaggi in MySQL PHP " target="_self">Uscita di strani personaggi in MySQL PHP </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/91582.html" title="PHP connessioni persistenti causano MySQL carico " target="_self">PHP connessioni persistenti causano MySQL carico </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/91686.html" title="Come evitare il tipo di join Tutto in MySQL " target="_self">Come evitare il tipo di join Tutto in MySQL </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/91481.html" title="Come fare un blocco in PHP Nuke " target="_self">Come fare un blocco in PHP Nuke </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/92129.html" title="Come giustificazione del testo in PHP " target="_self">Come giustificazione del testo in PHP </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/92738.html" title="Come stampare i nomi colonna con PHP e Microsoft SQL " target="_self">Come stampare i nomi colonna con PHP e Microsoft SQL </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/92872.html" title="Come convertire un timestamp di PHP per un Data " target="_self">Come convertire un timestamp di PHP per un Data </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/92155.html" title="Come convertire Int. a Tinyint " target="_self">Come convertire Int. a Tinyint </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/93158.html" title="Come creare un array in PHP " target="_self">Come creare un array in PHP </a></td></tr><tr></tr></table></td> </tr> </table></td> </tr> </table></td> <td width="20" valign="top"></td> <td width="375" valign="top"><table width="380" border="0" cellpadding="0" cellspacing="0" class="bian"> <tr> <td height="244" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="img_dm/danmai_r4_c04 -.jpg" bgcolor="#DBE3EE"> <tr> <td width="4%" height="29"> </td> <td width="96%" class="lan_lm">Articoli in evidenza </td> </tr> </table> <table width="95%" height="207" border="0" align="center" cellpadding="0" cellspacing="4"> <tr> <td height="199"><table width="100%" cellpadding="0" cellspacing="0"><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/91949.html" title="Come installare DBD- MySQL per PPM " target="_self">Come installare DBD- MySQL per PPM </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/java-programming/89679.html" title="Come utilizzare un caso di utilità Java " target="_self">Come utilizzare un caso di utilità Java </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/computer-programming-languages/88342.html" title="Come posso convertire i file Creatore Calendario " target="_self">Come posso convertire i file Creatore Calendario </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/computer-programming-languages/86650.html" title="Fasi di progettazione grafica " target="_self">Fasi di progettazione grafica </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/perl-programming/93248.html" title="Come utilizzare il codice Perl Ganci " target="_self">Come utilizzare il codice Perl Ganci </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/php-mysql-programming/92037.html" title="Come importare Excel to MySQL " target="_self">Come importare Excel to MySQL </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/computer-programming-languages/87328.html" title="Come compilare un progetto di Android su Windows " target="_self">Come compilare un progetto di Android su Windows </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/javascript-programming/91110.html" title="Come utilizzare il metodo POST in Window.Open con Java Script " target="_self">Come utilizzare il metodo POST in Window.Open con Java …</a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/javascript-programming/90839.html" title="Framesets corretto per Javascript " target="_self">Framesets corretto per Javascript </a></td></tr><tr><td width="10" valign="top" class="">·</td><td class=""><a class="" href="/Programmazione/computer-programming-languages/87626.html" title="Come prova per i numeri pari o dispari in MATLAB " target="_self">Come prova per i numeri pari o dispari in MATLAB </a></td></tr><tr></tr></table></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table> <table width="980" height="8" border="0" cellpadding="0" cellspacing="0"> <tr> <td></td> </tr> </table> <table border=0 cellSpacing=0 cellPadding=0 width=980 bgColor=#36506e height=90> <tr> <td class=bs height=90 align=middle>Copyright © Conoscenza Informatica http://it.wingwit.com <script language='javascript' src='/ad/201310/1.js'></script></td> </tr> </table> </div> </body> </html>