| getMagorVersion() | ใช้คืนค่า ชื่อเวอร์ชั่น ของ JSP |
|---|---|
| getRealPath() | ใช้คืนค่า Path ของ File ที่กำหนด (Path ทั้งหมดตั้งแต่ Root) |
| getServerInfo() | ใช้คืนค่า ชื่อและเวอร์ชั่นของ Web Server |
| getServletContextName() | ใช้คืนค่า ชื่อของ Web Application ถ้าไม่มีจะคืนค่า null |
method:getMagorVersion ();
return type:String
special:static
content:ใช้คืนค่า ชื่อเวอร์ชั่น ของ JSP
example:String magor_version = application.getMagorVersion();
method:getRealPath ( object_string_filename );
return type:String
special:static
content:ใช้คืนค่า Path ของ File ที่กำหนด (Path ทั้งหมดตั้งแต่ Root)
example:String real_path = application.getRealPath ( “panda.jsp” );
method:getServerInfo ();
return type:String
special:static
content:ใช้คืนค่า ชื่อและเวอร์ชั่นของ Web Server
example:String server_info = application.getServerInfo ();
method:getServletContextName ();
return type:String
special:static
content:ใช้คืนค่า ชื่อของ Web Application ถ้าไม่มีจะคืนค่า null
example:String servlet_context_name = application.getServletContextName ();