Download 2.2. CSCW

Transcript

Add Sections
 At client side:
Create sections assumed to be processed by group's coordinator. From browser,
coordinator fills the Add section form for required data see figure (5.22). These data
submitted as a request to add section servlet handler at server side to process them.
Figure 5.22: add section.
 At server side:
Add section handler servlet gets Data as requests from an add section form at client
side. Then, connecting to CFGP database and performing queries .If no error occurs,
add section completed by accessing table Forum_forums of CFGP database. As
following:
String query = "INSERT INTO forum_forums
(forum_id,title,forum_info,Group_name)values(?,?,?,?) " ;
PreparedStatement stmtt = db.Prequery(query);
stmtt.setString( 1, forum_id);
stmtt.setString( 2, title);
stmtt.setString( 3, forum_info);
stmtt.setString( 4, sessionGroup);
// Send query to database.
‫مها الفوسان‬
‫قسم مهارات تطويز الذات‬
‫عمادة السنة التحضيزية‬