| setAttribute() | ใช้สร้าง Attribute โดยมีการกำหนด ชื่อ, ค่าข้อมูล และขอบเขตด้วย |
|---|
method:setAttribute ( object_string_name, object_string_attribute, int_scope );
return type:void
special:static
content:ใช้สร้าง Attribute โดยมีการกำหนด ชื่อ, ค่าข้อมูล และขอบเขตด้วย โดยขอบเขตมีค่าที่เป็นไปได้คือ page(1), request(2), session(3), application(4)
example:pageContext.setAttribute ( “title”, “ยินดีต้อนรับ”, 2 );