⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 servletcontext.xtp

📁 解压在c盘
💻 XTP
字号:
<title>ServletContext</title><p/>The ServletContext object is a straight reflection from theServlet interface.<p/>The JSP <a href='jsp.xtp#application'>application</a> object is aServletContext object.<objsummary/><section title='ServletContext' version=resin1.0><defun title='getAttribute(name)'><sum>Returns the value corresponding to <var/name/>.</sum>Applications can use the attributes to store arbitrary data.</defun><defun title='getAttributeNames()'><sum>Returns an enumeration of all attribute names.</sum><example title='List Attributes'><example>context.attribute["foo"] = 1context.attribute["bar"] = 2for (var name in context.attribute) {  writeln(name + " : " + context.attribute[name]);}</example><results>foo : 1bar : 2</results></example></defun><defun title='setAttribute(name, value)'><sum>Sets an attribute to an arbitrary value.</sum></defun><defun title='removeAttribute(name)'><sum>Removes an attribute from the context.</sum></defun><defun title='majorVersion'><sum>Returns the major version of the Servlet API.</sum></defun><defun title='minorVersion'><sum>Returns the minor version of the Servlet API.</sum></defun><defun title='serverInfo'><sum>Returns a string describing the servlet engine.</sum></defun><defun title='log(msg [, exception])'><sum>Adds <var/msg/> to the servlet engine's log file.</sum>  This isthe preferred way to log errors.</defun></section>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -