עמוד:205
} str += " tr > " ; } usersFormattedStr += " < td > User td > " ; else { } usersFormattedStr += " < td > Manager td > " ; if ( "Y" . equalsIgnoreCase ( usersResultSet . getString ( "isManager" ))) { str += " < td style = 'border : 2 px solid blue' > " + usersResultSet . getString ( "birthYear" ) . toString () + " td > " ; str += " td > " ; % > } return str ; } System . out . println ( "error in connecting" ); catch ( Exception ex ) { } // end of try -- % > עיצוב הפלט למשתמש < body > head > < title > test database title > < head > < html > < % -- connectDB (); < % < tr > < table > h 1 > The table of users < h 1 > שאילתת out . print ( formatUsersForHtml ( usersResultSet ));; usersResultSet = statement . executeQuery ( sql ); String sql = "SELECT * FROM tblUsers" ; // SQL
|