עמוד:207

-- % > < % @ page import = "java . sql . * " % > הגדרת משתנים ופונקציות Statement statement = null ; Connection connection = null ; String connectionURL = "jdbc : mysql : // localhost : 3306 / MyGame " ; < % ! < % -- -- % > % > String sql ; ResultSet rs = null ; בדיקה אם המשתמש לחץ על כפתור השליחה return (( request . getParameter ( "send" ) ! = null ) && ( request . getMethod () . equals ( "POST" ))) ; boolean isSubmitPressed ( HttpServletRequest request ) { < % ! < % -- { % > connection = DriverManager . getConnection ( connectionURL , "root" , ""); Class . forName ( "com . mysql . jdbc . Driver" ) . newInstance (); try { void connectDB (){ < % ! % > } } System . out . println ( "error in connecting" ); catch ( Exception ex ) { } statement = connection . createStatement (); -- % > עיצוב פלט למשתמש < title > Register Page < head > < html > < % -- -

מטח : המרכז לטכנולוגיה חינוכית


לצפייה מיטבית ורציפה בכותר